Flow Actions
Doc Management Flow Actions
Set Resource Property (Batch)
introduction the cloudfiles set resource property (batch) action extends the functionality of the standard set resource property docid\ tqdwxfgpgtqijeymsaa2h flow action, enabling you to process multiple resource property updates in a single action instead of configuring multiple individual actions in your salesforce flow, this batch action consolidates them, improving efficiency and simplifying flow management what this action does the set resource property (batch) action processes a collection of set resource property docid\ tqdwxfgpgtqijeymsaa2h update requests each request contains a resource docid\ mr7u7qdhigoasucpf nlr (the file or folder to be updated) a collection of updates (key value pairs of property names and their corresponding values) the action applies all updates in the collection, streamlining workflows for handling multiple metadata updates example if three files need updates file 1 updates as "document type" to "invoice" and "status" to "approved " file 2 updates as "document type" to "report " file 3 updates as "name" to "project plan docx" and "category" to "project files " instead of using 3 seperate set resource property docid\ tqdwxfgpgtqijeymsaa2h flow actions, configure 3 seperate cldfs setresourcepropertyflowinput entries, add them to the inputs collection, and execute a single set resource property (batch) action input parameters inputs a collection of apex defined variables of type cldfs setresourcepropertyflowinput each cldfs setresourcepropertyflowinput includes resource the target resource docid\ mr7u7qdhigoasucpf nlr (file or folder) updates a collection of cldfs cloudfilesvariable variables, each representing a property name and its corresponding value for the resource how to configure the "inputs" parameter? create the inputs collection define a collection variable of type cldfs setresourcepropertyflowinput in salesforce flow to hold multiple set resource property docid\ tqdwxfgpgtqijeymsaa2h entries create individual cldfs setresourcepropertyflowinput entries for each resource to be updated assign the resource (metadata details such as driveid, id, and library) define the updates each update is a cldfs cloudfilesvariable object with key the property name (e g , "document type" or "status") valuestring the corresponding value for the property add updates to each resource create a collection variable of cldfs cloudfilesvariable to store all the property value mappings for the resource assign this collection to the updates field of the cldfs setresourcepropertyflowinput add all inputs to the batch collection add all such cldfs setresourcepropertyflowinput entries to a collection variable and input this as inputs parameter output parameters this action does not produce specific outputs to confirm the execution check the updated metadata values in the external storage system (e g , sharepoint) verify changes via the cloudfiles lwc or widget