cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UB400
Level 10

Create new File in Sharepoint and update it's properties

I'm triggering a Flow from PowerApps, the Flow "Creates a file" in a Sharepoint Online Document library, I also want to update some additional columns of "Metadata" for the file, including some Custom columns.

 

In Flow, in the Create File dialog box, the only available fields I see are FileName and File Content, so I thought of using the "Update File properties" Action to add the values I need, but how do I get the "ID" of the File that just got created?

 

Essentially I want to create the file in a Sharepoint Online Doc library, and add some metadata columns.

 

Any help would be greatly appreciated.FlowUpdateFileProperties.png

1 ACCEPTED SOLUTION

Accepted Solutions
paul_culmsee
Level 8

Re: Create new File in Sharepoint and update it's properties

So I did blog a workaround for this some time back, but recently I did the same steps as above when the "update file properties" action came out and and it worked for me... 

 

Just now I made a powerapps trigger flow and dropped the two actions onto it. Note the ItemID in the second action...

 

Flow.PNG

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: Create new File in Sharepoint and update it's properties

Hi @UB400,

 

I tried to create a similar flow and it is true that you cannot get the id of the file. I think this cannot be achieve so far.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
UB400
Level 10

Re: Create new File in Sharepoint and update it's properties

@v-monli-msft thank you for your response. I got a work around from Paul Culmsee, see the link to his Blog http://www.cleverworkarounds.com/2017/07/14/the-currently-best-way-to-update-sharepoint-document-met... 

 

He has since that post, found a better way. Maybe he will update the Blog or make a post here. I was really grateful for his help in this issue.

paul_culmsee
Level 8

Re: Create new File in Sharepoint and update it's properties

So I did blog a workaround for this some time back, but recently I did the same steps as above when the "update file properties" action came out and and it worked for me... 

 

Just now I made a powerapps trigger flow and dropped the two actions onto it. Note the ItemID in the second action...

 

Flow.PNG

View solution in original post

Highlighted
tjsnell
Level: Power Up

Re: Create new File in Sharepoint and update it's properties

I built something this using a 2010 workflow on-prem in 2013 SP by following the instructions here:

https://sharepointprojectbrad.wordpress.com/2013/06/10/create-word-2013-documents-from-sharepoint-20...

 

It populates the document based on the list metadata using quickparts. The bad thing is it only goes one way so if someone edits the document directly it doesn't edit the list. I imagine you could write a second workflow for the document libary itself but I never took it that far. 

 

If this works in Flow that would be awesome. Probably a lot easier to manage. 

 

 

Sunday
Level: Power Up

Re: Create new File in Sharepoint and update it's properties

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,864)