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
ccPeterccPeter 

Enumerate custom fields in a Content library

Content libraries can be enumerated with ContentWorkspaces. That will give me the name, description, etc of the available libraries. In addition, I get the DefaultRecordTypeId that identifies the Content Type assigned to the library. The Content Type contains the characteristics of the various custom input fields that the admin has created. I would like to enumerate these custom input fields. I was looking for something named Field or ContentField maybe that I could query given the DefaultRecordTypeId. Therefore please answer the following questions when you get a chance:

 

- How do I enumerate the input fields contained in a Content Type?

 

- How do I know that multiple Content Types have been attached to a library?

 

Thanks

Peter

Best Answer chosen by Admin (Salesforce Developers) 
ccPeterccPeter

As it turns out the custom fields are enumerated along the default fields in ContentVersion.