cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

ODATA Filter Query

Hi all,

 

I'm trying to setup some subscription emails from our Azure SQL Database. Essentially a user is able to subscribe which creates a new row in table "Subscriptions".

 

Items

ID | ItemName | ItemDetails | etc | etc | etc....

 

Subscriptions

ID | UserID | ItemID

 

Users

ID | FullName | Email

 

My Flow currently checks if a record is updated, then uses the following ODATA filter query to selected the relevant subscriptions:

 

ItemID eq 404

 

"404" is the ID of the item in Items.

 

I then want to pull a list of users that exist in this new filtered list. In DAX or PowerApps I would usually do something like this:

 

**Check on User table

ID in UserID

 

UserID is the result of the filtered subscriptions table.

 

What is the alternative to in for an ODATA filter query?

 

Thanks,

J

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: ODATA Filter Query

Hi @opticshrew2,

 

You can create the following structure to filter the userID which is equal to the ItemID:

You can opt to create a variable FilterUserID to store the filtered userID.

Annotation 2019-08-21 101849.png

Please have a try, I hope it can help you.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: ODATA Filter Query

Hi @opticshrew2,

 

You can create the following structure to filter the userID which is equal to the ItemID:

You can opt to create a variable FilterUserID to store the filtered userID.

Annotation 2019-08-21 101849.png

Please have a try, I hope it can help you.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper II
Helper II

Re: ODATA Filter Query

Hi @v-litu-msft,

 

Ah okay, so there isn't a function like "in".

 

Do you know if something like this will be added in the future?

 

Thanks,
J

Highlighted
Community Support
Community Support

Re: ODATA Filter Query

Hi @opticshrew2

 

If new data operation feature added in Flow, this will be exciting news.

But there is no news yet.

Best Regards,
Community Support Team _ Lin Tu

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (8,339)