cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
opticshrew2
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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

opticshrew2
Level: Powered On

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

Community Support Team
Community Support Team

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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!

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: 69 members 3,499 guests
Please welcome our newest community members: