Is there an implementation restriction for contentdocumentlink?

Is there an implementation restriction for contentdocumentlink?

Implementation restriction: ContentDocumentLink requires a filter by a single Id on ContentDocumentId or LinkedEntityId using the equals operator or multiple Id’s using the IN operator. Interestingly, if I provided hard-coded values using IN clause then it accepts it.

Can a user delete a contentdocumentlink object?

In API versions 21.0 and later, users with explicit Viewer access (the file has been directly shared with the user) to a file can delete ContentDocumentLink objects between the file and other users who have Viewer access.

What does the contentdocumentlink mean in Salesforce?

ContentDocumentLink. 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. This object is available in versions 21.0 and later for Salesforce CRM Content documents and Salesforce Files.

What is the linkentityid for the SOAP API?

In API versions 25.0 and later, you can create ContentDocumentLink objects with a LinkEntityId of type User, CollaborationGroup, or Organization.

How is a contentDocument related to a document?

Each ContentDocument contains one or more ContentVersion objects (depending on how many versions of a given document have been uploaded). When you are query some fields on ContentDocument, like description, you are just pulling the description from the latest ContentVersion object.

What does the contentdocumentlink do in Salesforce?

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. This object is available in versions 21.0 and later for Salesforce CRM Content documents and Salesforce Files.

What is the implementation restriction for malformed query?

MALFORMED_QUERY : Implementation restriction: ContentDocumentLink requires a filter by a single ID, ContentDocumentID or LinkedEntityId using the equals operator in statement [SELECT “ROWID” ,”LINKEDENTITYID” ,”CONTENTDOCUMENTID” FROM “SFORCE”.”CONTENTDOCUMENTLINK\\ (#10002) Add a filter to the query when running against table ContentDocumentLink.

What is the implementation restriction for apex Stack Exchange?

Implementation restriction: ContentDocumentLink requires a filter by a single Id on ContentDocumentId or LinkedEntityId using the equals operator or multiple Id’s using the IN operator. Interestingly, if I provided hard-coded values using IN clause then it accepts it. But I have to make it run in the apex and it has to be dynamic.

How to create a contentDocument in SOAP API?

Fields Field Details ContentDocumentId Type reference Properties Create, Filter LinkedEntityId Type reference Properties Create, Filter ShareType Type picklist Properties Create, Filter, Visibility Type picklist Properties Create, Filter,