From salesforce I Need to expose a webservice to accept pdf/txt files from Mule and once I receive I need to store in Salesforce as an Attachment. However, from Postman while trying to hit as below I am getting the below error. So, the question is
- Is Mule has to convert the details in blob to me ?
- Is there anyway I can receive file in Salesforce directly from 3rp party system/Mule ?
once I receive the content I can store in salesforce like below.
newAttachment.Name =AttachmentName;
newAttachment.Body=[Actual content which is in file];
newAttachment.ContentType ='Something.txt or .pdf';
newAttachment.ParentId =ca.Id;
insert newAttachment;