Filtering Microsoft Power Automate “Get Items” with Filter Query

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
thanks for joining today we're just going to show a quick trick to use in microsoft's power automate formerly known as microsoft flow what we're going to be doing is using a manually triggered flow where we're selecting a particular value and we're going to be filtering by that value the reason that we're going to do this is we have a get items action here in flow power automate that will bring back list items from a sharepoint list however for one thing that can take a a good amount of time for the flow to run if you've got you know 10 000 items on that list uh first of all it's going to be limited at 5000 that is the current cap and that happens to mimic the sharepoint list view threshold so there's method to their madness on that with 5000 rows being returned but you may want to be using a filter anyway so that you can pull a specific set of items back rather than just the entire list you also have the option of using limit entries to a particular folder for get items but today we're going to focus on the show advanced options and we're going to use the filter query now what i've done is i've created a drop-down list of options here for internal and external okay we have an economics list that i have connected to and that's what i want to get items from in the internal and external refers to the cost type field so in my proposed need here in power automate what i'm going to be doing is i'm going to be automatically writing rows that come through as internal cost type to a specific finance list that we'll just say our finance department needs for the sake of the exercise okay so we're going to be getting only the items where cost type equals internal so we're going to go here first okay and we're going to look at what this specific cost type field is called and there's a reason that we do this the trick to this is you go in as if you're going to edit the field and then up here in the url you see exactly what that cost type field is called the reason i showed you this is because if you have a space in any of your sharepoint name fields it's going to show as something that is not at all what you expect it to be specifically the space is changed into an underscore x 0 0 2 0 underscore because that makes perfect sense does it not so we're going to keep that i just did a control c on that so that i can enter that and then we're going to need that later perhaps in the create item so that we can populate the update item or the create item here so that's just a good note that i gave you but what's great about this is that we have this manually triggered flow here once i select filter query here you'll see i can go here and then dynamic content automatically comes up okay and we're going to ensure that our month equals the value that we are trying to establish okay so we're going to set that cost field okay this is what the name of the cost field is in the sharepoint list that's why i've copied it okay you're simply going to type that here in this filter query you're then going to do a space you're going to do equals eq that's it you're going to do a single quote you're going to select month and you're going to close that single quote and that is the syntax the name of the sharepoint field the exact name that you copied from the address bar up here you're going to enter that here into the filter query you're going to do a space eq space single quote the dynamic content that matches your input okay if you want to be sure that this is the input as you can see there's lots of other options on here you can call this some crazy name like month zebra okay if i switch to this now and go down here you can see that this has now changed to month zebra so i need to take this out of here i need to replace it with month zebra okay you need to make sure however that it is surrounded by those single quotes if you change that if you update it you need to go through you need to put that single quote back in there and that's it now what's going to happen is this list this get items is going to filter by whatever the person selects from their manual trigger so if you want to copy external rows rows where the cost type equals external you'd select external in the manual trigger if you wanted to select internal you choose internal here and then that would automatically set the cost type field when it equals internal will be what the get items list returns that's it good luck
Info
Channel: PPM Works
Views: 51,717
Rating: undefined out of 5
Keywords: microsoft power automate, power automate, flow, microsoft flow, microsoft ppm, project, project online, power automate filter, flow filter
Id: qWWe4_noQRs
Channel Id: undefined
Length: 5min 38sec (338 seconds)
Published: Tue Jul 07 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.