@Josh Anglesea
Thanks for your Reply,
Can you please also guide me on how to send the attachment file in body, I mean What should be the Content-type of PATCH command is it JSON or anything else? and which format should I send the attachment file In a stream? I am trying to send an attachment file like below
byte[] fileByte = DownloadAttachment(Attachmenturl);
Stream Stream = new MemoryStream(fileBye);
Dynamic365BCAttachmentContent Dynamic365BCAttachmentContent = new Dynamic365BCAttachmentContent();
Dynamic365BCAttachmentContent.attachmentContent = Stream;
string jsonContent = JsonConvert.SerializeObject(Dynamic365BCAttachmentContent);
string ResposeJson1 = "";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
streamWriter.Write(jsonContent);
streamWriter.Close();
}