Signature
global static void execute( List<SetResourcePropertyBatch.FlowInput> inputs )
Parameters
| Parameter | Description | |
|---|---|---|
inputsList<SetResourcePropertyBatch.FlowInput> |
required | One or more groups of updates. Every update in every group is sent in one request. See the field breakdown below. |
FlowInput
FlowInput
| Parameter | Description | |
|---|---|---|
inputs |
required | The resources to update in this group, each with its property updates. |
Return Type
void
Example
cldfs.Resource folder = new cldfs.Resource( '01KEHAKUXCQ6YIOFLOPJHJN57Y5EYQTJMZ', // resource Id 'folder', null, 'sharepoint', 'b!nJBtPq_z5UeJtFrj_f24XEQqlPUD8vtFsg7GBcrXJepiUn9bkb_7QbDPtqHVD-cP' ); cldfs.CloudFilesVariable status = new cldfs.CloudFilesVariable(); status.key = 'Status'; status.valueString = 'Approved'; cldfs.SetResourcePropertyFlowInput update = new cldfs.SetResourcePropertyFlowInput(); update.resource = folder; update.updates = new List<cldfs.CloudFilesVariable>{ status }; cldfs.SetResourcePropertyBatch.FlowInput input = new cldfs.SetResourcePropertyBatch.FlowInput(); input.inputs = new List<cldfs.SetResourcePropertyFlowInput>{ update }; cldfs.SetResourcePropertyBatch.execute( new List<cldfs.SetResourcePropertyBatch.FlowInput>{ input } );
One storage library per callEvery update in the call is sent with the storage library of the first resource, so resources in different libraries fail. Make one call per library. The call also fails if the first group has no updates. To update a single resource, or to set properties with your own
Map<String, String>, use Set Resource Property.