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 :

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

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