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
Davide SammartanoDavide Sammartano 

API REST: Upload Asset Library

Hi All,

is it possible to upload Files to Asset Library from external web services using salesforce REST API?

Thanks.
kompasdmc alikompasdmc ali
great work on website design services and a excellent execution of content in a unique peculiar way. Thanks for providing great content, with informative information. 
my back pain coach
 
erase my back pain
Shiva RajendranShiva Rajendran
Hi Davide,
Could you share by what language you are implementing ?
Generic api guide :
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm

Ideally it must work as any api call , if you specify with details, i can try out and share you the code.
Thanks,
Shiva RV
Davide SammartanoDavide Sammartano
Hi Shiva,

actually i'm studying only if it is possible. I think that i'll use Java for it. I'm trying with api guide but i have same problem with folderId. 
Do you know if i can use Library Assets Folder? If yes, How can i get folder id?

Thank a lot!
Davide
Shiva RajendranShiva Rajendran
Hi Davide,
SELECT Id , name FROM ContentFolder
This gives you all the folderid and names in your org 
Thanks,
Shiva RV
Davide SammartanoDavide Sammartano
Hi Shiva, 

This list don't shows library assets folder but only user's folders. 
Do you have other solutions?

Thanks,
​​​​​​​Davide