You need to sign in to do that
Don't have an account?
Raghu Ch 2
content of the attachment not getting loaded while using bulk api
Hi,
I am trying to load attachment to salesforce using bulk api. As mentioned in the docs, i specified the request .txt as below in the root of the zipped folder:
[
{
"Name" : "Test.pdf",
"ParentId" : "001U000000sRM7dIAG",
"Body" : "#Test.pdf"
}
]
But when the file is being loaded into salesforce, the body is being loaded as string (Test) but not as path. Content of the attachment is not getting loaded.Is there a way to specify the file path in json key-value pair? or does the bullk api for loading binary attachments work only with .csv format or xm format?
I am trying to load attachment to salesforce using bulk api. As mentioned in the docs, i specified the request .txt as below in the root of the zipped folder:
[
{
"Name" : "Test.pdf",
"ParentId" : "001U000000sRM7dIAG",
"Body" : "#Test.pdf"
}
]
But when the file is being loaded into salesforce, the body is being loaded as string (Test) but not as path. Content of the attachment is not getting loaded.Is there a way to specify the file path in json key-value pair? or does the bullk api for loading binary attachments work only with .csv format or xm format?
Sorry for this issue you are encountering.
Yes, I hope that it is supported as per the below documentation.
May I suggest you please refer to the below link for more information.
- https://success.salesforce.com/answers?id=9063A000000l9LFQAY
Hope this helps.Thanks,
Nagendra