Flow Actions
Doc Management Flow Actions
Set Resource Property
introduction metadata properties in file storage systems, such as sharepoint, google drive, and others, represent key information about files or folders these properties define the type of information you can store about a resource (file or folder) and are critical for organizing, filtering, and managing data effectively in systems like sharepoint, metadata properties function similarly to database fields or spreadsheet headers for example columns in sharepoint categorize and tag files with information like file type or status properties in google drive include attributes like a folder's name, description, or permissions by leveraging metadata properties, you can ensure structured management and efficient retrieval of resources across platforms columns in sharepoint are the fields or metadata associated with items in a list or document library they define the type of information you can store about an item or file common column types for file tagging include single line of text, choice, date and time, checkbox and many more columns enable better categorization and automation, ensuring efficient file management and discovery the cloudfiles set resource property flow action automates the process of updating or assigning metadata property values for resources across multiple storage systems, such as sharepoint update column values (e g , document type, status) google drive modify properties like folder name or description other libraries set properties as supported by the specific platform this action enables seamless integration with salesforce flow builder, allowing sophisticated automations for metadata management in diverse systems what this action does the cloudfiles set resource property flow action allows you to specify the target resource docid\ mr7u7qdhigoasucpf nlr using its metadata details specify the columns to update using their property/column api names dynamically assign values to these properties/columns via text input or flow resources this action supports batch updates, enabling you to update or assign multiple column values for a single resource in a single action execution example use case scenario your salesforce users upload files into sharepoint folders through cloudfiles lwcs on account and contact record pages you want to capture specific metadata from these upload events and automatically tag the files in sharepoint for instance if a file is uploaded from an account record, set its document type column to "account file" and the record id column to the associated account's record id if uploaded from a contact record, set the same columns accordingly automation steps trigger the automation configure a flow to trigger on the file uploaded event filter events use decision elements to filter the events based on the originating record's object type (e g , account or contact) set resource properties use the set resource property action to update the file’s column values assign "account file" to the document type column and the account's record id to the record id column for account originated uploads similarly, tag files with appropriate values for contact originated uploads by automating column tagging, you ensure consistent metadata management, enhancing discoverability and supporting streamlined workflows below is the flow snippet of the example use case input parameters resource the resource docid\ mr7u7qdhigoasucpf nlr parameter is used to specify the sharepoint resource (file or folder) whose column values are to be updated how to configure the resource parameter? if you do not have the resource parameter directly available, you can configure it by creating a cldfs resource variable in your flow assigning the resource's metadata details (e g , drive id, id, library) to the variable these metadata details can be obtained from cloudfiles event details , such as file uploaded docid\ p yy1ryebu5ecnctf0jhd resource cloned docid\ n3c5zlgpp3tvhy2kes041 any other cloudfiles flow actions , such as get folder contents docid 9mdumpjrzqenyvrixspbd get resource details docid\ ue5s2y9qglsceiqd0serc any other in the scenario described in the "what this action does" section, the uploaded file's metadata details are fetched using event details the flow snippet below illustrates the steps to configure the resource parameter properties the properties parameter in the set resource property action is where you define column value assignments for a resource (file or folder) in sharepoint each column to be updated requires two inputs property name specifies the column (property) to update value specifies the new value for that column property name input the file/folder (resource) property api name in the external storage whose value must be updated/set where to find the property/column's api name ? from external storage directly find the api names of columns in a specific document library alternatively, within salesforce , go to cloudfiles app > document management > widget configuration in the widget columns section, add required columns to check their api names by navigating to the storage loaction, and find its api name ( displayed in brackets next to the column name ) when updating a resource's 'name' column/property to update the 'name' column of a sharepoint resource (file or folder), you need to follow a special configuration separate action for 'name' you must create a separate set resource property action for updating the 'name' column only the 'name' column can be updated within this action no other columns (properties) can be updated in the same action when modifying the 'name' column updating 'name' and other columns if you need to update both the 'name' column and other columns simultaneously, you must u se two separate actions one action should be dedicated solely to updating the 'name' column a second action should update all other columns types of sharepoint columns that can be updated using the flow action currently, the cloudfiles set resource property flow action supports updates for only the following two types of sharepoint columns single line of text yes/no for other column types, such as date , choice , and others, manual updates through the cloudfiles widget/lwc are supported however, these types are not yet supported for updates via the flow action support for additional column types in the flow action will be added in future releases value input the value to assign to the specified column the value can be plain text manually entered text dynamic resource a value from a salesforce flow resource (e g , variables, formulas) if column type is yes/no then for yes, value = true for no, value = false output parameters this action does not generate any output to confirm the execution check the updated values directly in sharepoint verify column values via the cloudfiles lwc