Signature

global static List<List<Id>> execute(List<GetSalesforceFiles.FlowInput> inputs)
Invocable classThis is an invocable method, not a Client method. Call it as cldfs.GetSalesforceFiles.execute(inputs) where each input is a cldfs.GetSalesforceFiles.FlowInput carrying a recordId — not as cldfs.Client.*.
Parameters
ParameterDescription
inputs
List<GetSalesforceFiles.FlowInput>
requiredOne entry per Salesforce record. Each FlowInput carries the recordId whose attached files you want.

Return Type

List<List<Id>> — the ContentDocument Ids of the files attached to each input record, in input order.

Example

cldfs.GetSalesforceFiles.FlowInput input = new cldfs.GetSalesforceFiles.FlowInput();
input.recordId = '006dL000005H4srQAC';//Salesforce 

List<List<Id>> ContentDocumentIds = cldfs.GetSalesforceFiles.execute(new List<cldfs.GetSalesforceFiles.FlowInput>{input});