cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UB400
Kudo Kingpin
Kudo Kingpin

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

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

6 REPLIES 6
v-monli-msft
Community Support
Community Support

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.

@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.

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

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. 

 

 

Frank89
Helper I
Helper I

Hi @UB400 , Hi @paul_culmsee , 

 

I just found your post and solution. Could you tell me how to solve this problem and update the properties when creating several files (apply to all)?

In my Photo-App in Powerapps I am taking fotos and I write them in collection "pics". In this collection the column "OneID" is what I want to write in the document library where I store these fotos. 

 

FMTicket1.JPGFMTicket2.JPG

 

Thanks, 

Simon

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (14,635)