cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SylvieLet17
Level 8

Update file Properties on output of ODATA filter query

Hi all,

 

What exactly can I do with the Output of a Get Files (properties only) action?

I'd like to update the metadata on the files that this action retrieves but I have no idea where to begin.

Of course the output of that action is an Object and I'm new to dealing with Objects. 

I tried messing with Variables to get the ID and Path of the document so that I could then use an "Update file properties" action, but I can't use any string functions to get those values on the Object output. I know it sounds like a messy way to do it, but I am lost. 

Here's the sequence of my flow:

When a document is copied to Library A

start an approval

if Approval Response == yes

get files (properties only) in Library B with filter: Title eq 'value'

update those files to: Status = Published and Publishing Date = UTCNow

 

Please help!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Update file Properties on output of ODATA filter query

Hi @SylvieLet17,

 

Do you want to update file properties of files that filtered by Odata filter query?

I have made the following test, please take it for a reference.

It is triggered by When a file is created in a folder.

Start an approval, if the Response is equal to Approve, Get files from Library2, the filter query is configured as:

Title eq ‘BugList’

Then Update file properties, Status to Published, and Publishing date to Utcnow.

Image for your reference.

 1.PNG 

 

Best regards,

Mabel

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.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Update file Properties on output of ODATA filter query

Hi @SylvieLet17,

 

Do you want to update file properties of files that filtered by Odata filter query?

I have made the following test, please take it for a reference.

It is triggered by When a file is created in a folder.

Start an approval, if the Response is equal to Approve, Get files from Library2, the filter query is configured as:

Title eq ‘BugList’

Then Update file properties, Status to Published, and Publishing date to Utcnow.

Image for your reference.

 1.PNG 

 

Best regards,

Mabel

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.
SylvieLet17
Level 8

Re: Update file Properties on output of ODATA filter query

Thanks Mabel, 

I was just getting an error message when I built the flow, but it still runs fine regardless. Not sure what was up!

 

Thanks!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 199 members 3,783 guests
Please welcome our newest community members: