You need to sign in to do that
Don't have an account?
Harsh P.
get attachments related to record
Hello,
I have custom obj Order__c with some records and each records having some attachments.Order__c having field Order_No__c
For lightning cmp I have to show Order_No__c and It's related attachments like below table :
Sr.No Order No AttachmentName
1 12xx MyAttachment.jpg
Now,I need an help to write controller specially Query ?
I have custom obj Order__c with some records and each records having some attachments.Order__c having field Order_No__c
For lightning cmp I have to show Order_No__c and It's related attachments like below table :
Sr.No Order No AttachmentName
1 12xx MyAttachment.jpg
Now,I need an help to write controller specially Query ?
Did you try using contentdocumentlink object to give you link between object and content ?
Are you using content object ?
LinkedEntityId,
ContentDocumentId,
Visibility,
IsDeleted,
ShareType,
ContentDocument.Title,
ContentDocument.createdDate,
ContentDocument.FileType,
ContentDocument.ContentSize
FROM ContentDocumentLink