Apex
CloudFiles Client
Get Connected Folder
this method retrieves folder type attachments for a salesforce record, such as the account parent folder details, using apex global static list\<list\<attachment>> listattachments( list\<string> parentids, string runas ) parameters parentids list of salesforce recordids runas 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 of list of attachment docid 7vdkfats tonll2jilgsg objects example to get a connected folder for a salesforce record list\<list\<cldfs attachment>> attachments = new list\<list\<cldfs attachment>>(); attachments = cldfs client listattachments(new list\<string>{'006dl000005h4srqac'}, 'integrationuser');