Signature

global static List<List<Attachment>> listAttachments(
  List<String> parentIds,
  String runAs
)
Parameters
ParameterDescription
parentIds
List<String>
requiredList of Salesforce RecordIds.
runAs
String
requiredEmail 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.