Signature

global static List<Resource> execute(List<GetResource.FlowInput> inputs)
Invocable class, not ClientThis is an invocable method exposed on the GetResource class, not a Client method. Call it as cldfs.GetResource.execute(inputs), passing a List<cldfs.GetResource.FlowInput>.
Parameters
ParameterDescription
inputs
List<GetResource.FlowInput>
requiredOne GetResource.FlowInput per resource to look up. Each input carries resourceId, resourceType, resourcePath, library, and driveId.

Return Type

List<Resource> — the matching resource objects.

Example

cldfs.GetResource.FlowInput flowInput = new cldfs.GetResource.FlowInput();
flowInput.resourceType = 'folder';
flowInput.resourcePath = '/Account/Test Account';
flowInput.library = 'sharepoint';
flowInput.driveId = 'b!LU5XsSz3m0KNe-Xg9GsVb6W17YthDUpEoqgfcm-1NHgn0yfpElMfSoku6Fu5WwaI';
List<cldfs.Resource> resources = cldfs.GetResource.execute(new List<cldfs.GetResource.FlowInput>{flowInput});