Set Resource Property
“Set Resource Property” Action can be used to update/set an external resource’s property.
In your flow builder, search for the element named “Set Resource Property”. You can also find this action in the CloudFiles category when you click the "Action" element in the "Add Element" box. Select the action to insert it into the flow.
- Property Name - Input the File/Folder (Resource) property name in the external storage whose value must be updated/set. For example - name
- Value - Input the value that you wish to set for the resource’s property
- Resource - Input the resource whose property must be updated/set. You can use outputs of other Action elements in the flow like Get Event Details .
NOTE: Sometimes, You cannot use outputs from other Actions like Get Connected Folder or Create Folder since Salesforce warns regarding a mismatch in Variable types. To avoid this, the best way would be to manuallly assign the outputs of the above actions to a apex-defined variable with apex-class as cldfs__resource.
For example, lets say you have used Get Connected Folder Action in your flow and you want to assign it's outcomes as an input to "Set Resource Property", then:
1 - Create a 'New Resource' with Resource Type = Variable >> Data Type = Apex-Defined >> Apex Class = cldfs__Resource
2 - While configuring the "Get Connected Folder" action, Go to 'Advanced' dropdown >> Check the 'Manually Assign Variables' checkbox.
3 - Store the output values in the newly created Resource variable by mapping the outputs to the Resource variable's parameters.
4 - Now you can configure this newly created cldfs: resource variable as an input to the Resource parameter of "Set Resource Property" Action element.