Signature
global static List<List<Attachment>> listAttachments( List<String> parentIds, String runAs )
Parameters
| Parameter | Description | |
|---|---|---|
parentIdsList<String> |
required | The Salesforce record Ids of the records where files/folders are attached. |
runAsString |
required | Username to attribute the operation to; usually a static value — 'integrationUser'. |
Return Type
List<List<Attachment>> — one inner list per parentId, in input order.
Example
List<String> parentIds = new List<String>{ '001dL00000ZJIYiQAP', '0010Y00000B1Q2HQAV' }; List<List<cldfs.Attachment>> returnedAttachments = cldfs.Client.listAttachments( parentIds, 'integrationUser' );