Apex
CloudFiles Client

Get Attachments

To use Get Attachments action via apex you can utilize the listAttachments method in the Client class. Function definition as follows :

Apex


Parameters

  1. List<String> parentIds this will be the salesforce record Ids of the records where files/folder are attached
  2. String runAs, usually this would be a static value - 'integrationUser'



Return Type

return type is a - List<List<Attachment>>

Example

Apex