You need to sign in to do that
Don't have an account?
gautam_singh
Upload Files in Content-Version with Non Local PathONClient
HI,
We are working on Salesforce Communities using the standard Napili Template. We have Feed-Item and Feed-Comment Object where we can insert data extracted from legacy system.
Feed-Item and Feed-Comment will make the Questions and Answers over Community. As we are ending up contract with the legacy system, we do not want any reference to the Questions/Answers from the legacy System.
The Questions and Answers data received from legacy System contains Images Links which are to be attached/embed with the Feed Comments(Answers) and Feed-Items(Questions) . These Images are stored on the legacy system server and can be accessed in the browser using the URL.
We know that in order to link content/attachments to Feed_Comments and Feed_Items we need to insert data into Content Version(Files).
For Inserting Data into Content Version we need to fill PathOnClient and VersionData field. The Path should be a local directory. But in our case it is in the form of a URL which references to the server of external legacy system.
When we try to insert using the URL referring to external legacy server, we are able to insert a Content but that actually stores a reference and not the actual image/document.
We need to know How can we Insert records in Content-Version via URL/Path of NON-Local Server.
We are working on Salesforce Communities using the standard Napili Template. We have Feed-Item and Feed-Comment Object where we can insert data extracted from legacy system.
Feed-Item and Feed-Comment will make the Questions and Answers over Community. As we are ending up contract with the legacy system, we do not want any reference to the Questions/Answers from the legacy System.
The Questions and Answers data received from legacy System contains Images Links which are to be attached/embed with the Feed Comments(Answers) and Feed-Items(Questions) . These Images are stored on the legacy system server and can be accessed in the browser using the URL.
We know that in order to link content/attachments to Feed_Comments and Feed_Items we need to insert data into Content Version(Files).
For Inserting Data into Content Version we need to fill PathOnClient and VersionData field. The Path should be a local directory. But in our case it is in the form of a URL which references to the server of external legacy system.
When we try to insert using the URL referring to external legacy server, we are able to insert a Content but that actually stores a reference and not the actual image/document.
We need to know How can we Insert records in Content-Version via URL/Path of NON-Local Server.
Shashank (Salesforce Developers)
Please see if this helps: https://help.salesforce.com/apex/HTViewHelpDoc?id=loader_content.htm