Hello,
Below is an example of a SQL table I am trying to retrieve certain records from using an ODATA filter query.
Status | Company_Name | Value |
Active | TTT | 1 |
Active | TTT | 34 |
Inactive | SSS | 42 |
Active | JJJ | 453 |
Active | XXX | 23 |
Inactive | XXX | 56 |
I am trying to pull records where the status is "Active" and only for records with companies, [TTT,SSS and XXX]
Is there a way to filter by an array? For example "Status eq 'Active' and Company_Name eq [XXX,SSS,TTT]"
Right now I am trying to do and statements and can't seem to figure out how to get this working correctly
Please let me know If I need to elaborate more and I apprentice any insight!
Thanks
Solved! Go to Solution.
Hey @PowerappsMax ,
I could think of the below logic. Please test and let know if it works for you
Status eq 'Active' and (Company_Name eq 'XXX' or Company_Name eq 'SSS' or Company_Name eq 'TTT')
Or use in operator
Status eq 'Active' and Company_Name in ('XXX','SSS','TTT')
Hey @PowerappsMax ,
I could think of the below logic. Please test and let know if it works for you
Status eq 'Active' and (Company_Name eq 'XXX' or Company_Name eq 'SSS' or Company_Name eq 'TTT')
Or use in operator
Status eq 'Active' and Company_Name in ('XXX','SSS','TTT')
Worked perfectly, Thanks a lot!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
12 | |
9 | |
7 | |
7 | |
7 |
User | Count |
---|---|
20 | |
18 | |
17 | |
11 | |
7 |