cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Checking if SharePoint Library Doc is Sorted Under Specific Section

I have a SharePoint Library with documents that are sorted into multiple sections. I have a scheduled flow that is meant to check everyday if a document was last reviewed a year ago, but this only applies to some of the sections. I have the date check figured out, but I'm having trouble getting the flow to check if the document is sorted under the appropriate section. I want to set up an If condition, but I'm having trouble putting together the expression. Basically, I want it to look at each document, which hypothetically can be sorted under with Section One, Section Two, or Section Three. It will compare the document's section to the sections I specify need to be checked, say Section Two in this case. I'm thinking along the lines of: If document section = Section Two, check date, Else do nothing. Any suggestions are greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

We've had much better success with fine grain SharePoint actions by utilizing the SharePoint API rather than the built-in actions within Flow. Here are some links to get you started: 

Here's a look at how you can drill down into the syntax via ODATA filtering: 

ODATAfiltering.png

You can use the built-in ODATA Filter Query: 

FilterQuery.png

Or you can use the HTTP Request, and submit your own environment specific API calls. What works best for you, is kind of up to you. There is more than one way to skin a cat as they say. Here are some additional links for filtering:  

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Super User II
Super User II

We've had much better success with fine grain SharePoint actions by utilizing the SharePoint API rather than the built-in actions within Flow. Here are some links to get you started: 

Here's a look at how you can drill down into the syntax via ODATA filtering: 

ODATAfiltering.png

You can use the built-in ODATA Filter Query: 

FilterQuery.png

Or you can use the HTTP Request, and submit your own environment specific API calls. What works best for you, is kind of up to you. There is more than one way to skin a cat as they say. Here are some additional links for filtering:  

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (72,132)