Signature
global static List<List<Attachment>> listAttachments( List<String> parentIds, String runAs )
Parameters
| Parameter | Description | |
|---|---|---|
parentIdsList<String> |
required | List of Salesforce RecordIds. |
runAsString |
required | Email Id of the user on whom behalf the function should run. If you want to run the action as automation user, supply integrationUser. |
Return Type
List<List<Attachment>>
Example
List<List<cldfs.Attachment>> attachments = new List<List<cldfs.Attachment>>(); attachments = cldfs.Client.listAttachments(new List<String>{'001dL00000ZJIYiQAP'}, 'integrationUser');
Same method as Get AttachmentsThis uses the same underlying
cldfs.Client.listAttachments as Get Attachments; the two are documented as separate pages for their distinct use cases.