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
gtuerkgtuerk 

Content API - Associate uploaded content to a Context Object

I'm having some difficulty finding the API capability that allows me to associate uploaded Content (inserted into ContentVersion) with any Custom Object without using the front end.  What object(s) store the relationship from any object to associated 'RelatedContent'?
Best Answer chosen by Admin (Salesforce Developers) 
gtuerkgtuerk
BTW, you can't do this so you need to add a Custom Lookup field to Content in order to relate as part of the upload of Content.  It's a passably good workaround, I guess

All Answers

gtuerkgtuerk
BTW, you can't do this so you need to add a Custom Lookup field to Content in order to relate as part of the upload of Content.  It's a passably good workaround, I guess
This was selected as the best answer
gemziebethapgemziebethap

This is a fundamental limitation within Salesforce Content, and proves that the original Koral design has not been properly integrated with the rest of the Salesforce application. We have built our own .NET tool to upload a document into Content via Word, but again this only works if you create a custom relationship with the Content object; it doesn't work with the native "Related Content" functionality. Sort it out, Salesforce.

gtuerkgtuerk

Here's a way to do it natively - without a .net app.  let me know what you think of the solution

g

 

Upload Content Programmatically

shibani_arulshibani_arul

Shall we attach content version files to related content.

 

Please someone help me.