2

Error: Implementation restriction: 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.requires a filter by a single Id on ContentDocumentId or LinkedEntityId using the equals operator or multiple Id's using the IN operator.

Code:

public static List<AttachWrapper> getAttachment(Id parentId){

        //attachmentList = [SELECT Id, Name, Description, CreatedDate, LastModifiedDate, ParentID FROM Attachment WHERE ParentID =:parentId];
         ConDocLnk= [SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId =: parentId ];}

I've faced error while fetching ContentDocumentLink records with setting filter as its parent id

1

0

Browse other questions tagged .