Set new value for a given file property for a newly created SharePoint file
How do I set a new value for a given file property for a newly created SharePoint file? In particular, I want to be able to create a new file from the contents of the file that triggered the workflow and set the "Created by" property to be the same as the original file. Basically, I'm trying to move the file that created the trigger, keeping the same file properties, including the "Created by" property.
The basic flow that I'm implementing is:
Trigger: (SharePoint) "When a file is created (properties only)"
Synced SharePoint library for "scan-to-pc" scenario, which creates the file and syncs/uploads to Sharepoint
Action: (SharePoint) "Get file content"
uses document library and file identifier from previous step
Action: (SharePoint) "Create file"
"Filename with extension" (dynamic content)
"File Content" (dynamic content)
Action: (SharePoint) "Set property"
*** This is the step I don't know how to implement ***
I want to be able to set the "Create by" property to be the same as the property from the file that triggered the Flow.
Action: (SharePoint) "Delete file"
"File ID" (ID from original trigger) (dynamic content)
Could you share more details on step 4? Is it the SharePoint action Update property? I haven’t seen an action called “Set property”.
Do you have a Person and group column in the second library named as CreateBy?
If it is the SharePoint action Update property, and you have a column named as CreateBy. Please check the following flow configuration for a reference.
In the second library, there is a person and group column named as CreatedBy. In the flow, I am using the action Update properties, make sure select the dynamic content Created By claim from the trigger.
Please try it on your side.
Community Support Team _ Mabel Mao If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.