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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,204)