Salesforce Fact #774 | Check if a file is shared with a library

How to know if a File has been shared with a Library?

Once a file is added to a Library, a record is created in the ContentWorkspaceDoc object. We can query this object with the ContentDocumentId to check if a file is shared with a library.

Reference: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentworkspacedoc.htm

Attached are the screenshots.




Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow