Hi Everyone,
In this post, we will see how we can insert the Content Document or Content Version in Apex Test class.
Content Document: – Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files.
Content Version: – Represents a specific version of a document in Salesforce CRM Content or Salesforce Files. One Content Document can have multiple content versions.
Content Document Link:- Represents the link between a Salesforce CRM Content document or Salesforce file and where it’s shared. A file can be shared with other users, groups, records, and Salesforce CRM Content libraries.
Here is the code for the test class.
ContentVersion – Contains the complete information about the Content Document. Which have the following field.
References
Thanks for reading 🙂
#HappyReading #DeveloperGeeks #AskPanther #SFDCPanther
[…] If you want to know how to insert a Content Document using Apex. Check here. […]
[…] If you want to know how to insert a Content Document using Apex. Check here. […]