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

Associating CRM Content with custom objects.

Ho can we associate(attach/detach) crm content  "ContentVersion" records to some custom object programatically?is there any method exposed to attach/detach in API?


Here you go.  this should help.  You can use Apex to insert ContentVersion records and tie to Custom objects using Content Types.  I've blogged about all those topics at this link:


Programmatically Upload Content