Signature

global static List<String> execute(List<Resource> resources)
Invocable classThis is an invocable class, not a Client method. Call it as cldfs.GetFilesConnectResourceId.execute(List<Resource>), not cldfs.Client.*.
Parameters
ParameterDescription
resources
List<Resource>
requiredList of Resource records identifying the external files or folders whose Files Connect Resource Ids you want to retrieve.

Return Type

List<String> — the Files Connect Resource Ids. Each id can be passed to downstream actions — such as Create File Connect Files — to reference the external asset within Salesforce.

Example

List<cldfs.Resource> resources = new List<cldfs.Resource> {
    new cldfs.Resource('01KEHAKUVATUH5R5QRKJBLR3ITM3E6VCXN', null, null, 'sharepoint', 'b!nJBtPq_z5UeJtFrj_f24XEQqlPUD8vtFsg7GBcrXJepiUn9bkb_7QbDPtqHVD-cP')
};
List<String> fileConnectResourceIds =cldfs.GetFilesConnectResourceId.execute(resources);