2 Approaches to filtering and selecting data from Microsoft Graph in Power Automate
Image Source: Shutterstock.com
Jan 17, 2023 10:00 AM

2 Approaches to filtering and selecting data from Microsoft Graph in Power Automate

External Blog Post

Within my series about Microsoft Graph in the Power Platform I’ve collected data using customer connectors and HTTP actions but how do we filter and select data

Within my series about Microsoft Graph in the Power Platform I’ve collected data using customer connectors and HTTP actions but how do we filter and select data in Microsoft Graph?

Filter Action To filter our data that we get returned we could use the filter action. But that would mean collecting too much data before

Table of Contents

Filter Action

Filtering data in Power Automate

Microsoft Graph and filtering

Open full article

More about Microsoft Graph in Power Automate are using OData filters

The two approaches to filtering and selecting data from Microsoft Graph in Power Automate are using OData filters or the Get Items action with a filter query.

When using OData filters, you can use an expression such as “startswith(name,'Smith') eq true” which will return any results where the name begins with Smith. You can also add additional parameters to refine your search further, such as '$filter=contains(name, 'John')'. This makes it easier to find specific items that match certain criteria quickly and efficiently.

The other approach is to use the Get Items action with a Filter Query parameter. This allows you to specify conditions for what records should be returned by querying based on values of one or more properties in the result set. For example, if you wanted to get all users whose displayName starts with "Smith", then your filter query would look like this: "$filter=startsWith(displayName,'Smith')". With this approach, it's possible to build complex queries that involve multiple properties and conditions which can help narrow down your results even further.