You need to sign in to do that
Don't have an account?
Associating a Custom Object Instance with CRM Content Progrmatically
I thougt that the steps to code would be
1)Create a record in ContentDocument and ContentDocumentVersion record
2)Create a record ContentDocumentlink with ContentDocumentId as the Id from Step 1 and the LinkedEntityId as the Id of the custom object instance we want to link the content to .
In order to verify that the above need to be done while adding content to custom object programmatically , I attached content for a custom object using "Related Content" related list .
However , I found there was no linkage between the object Id and the ContentDocument Id in ContentDocumentlink table. Hence the step 2 above may not be correct .
Which table maintains the relationship between an Custom Object and a CRM Content ?
@Raman - Were you able to get answer to this dilemma?
check my post @ http://boards.developerforce.com/t5/Apex-Code-Development/quot-Related-Content-quot-stored-in-which-object-How-to-create/m-p/468095#M85772