function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Parth Patel 184Parth Patel 184 

sobjects document how to upload a file?

Hi There,
I am trying to use /services/data/v23.0/sobjects/Document/ from the link below:

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm

I can create the file just the name. How to upload a actual file/photo.

The the above link "Binary data goes here." what/how we can upload a photo and how can we generate a binary here and upload a photo in documents area?

Please advise.

ANUTEJANUTEJ (Salesforce Developers) 
Hi Parth,

Have you tried checking the below help article regarding a way to import Documents with Data Loader?

>> https://help.salesforce.com/articleView?id=000323822&type=1&mode=1

I hope this helps and in case if this comes in handy can you please choose this as best answer so that it can be used by others in the future.

Regards,
Anutej