web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / oData filter query con...
Power Automate
Unanswered

oData filter query conditional

(0) ShareShare
ReportReport
Posted on by

I have a filter query when inputted directly into the 'sharepoint get items' step, just works.. but when I put this into a conditional and put it into the get items step it fails. 

 

I then took the if condition out of the odata filter and put into a compose step and then the compose was my odata field.. this failed too.. 

 

but when I took the output of the compose, copied it and pasted it into the odata filter, everything works.. So needless to day I'm lost in what is going on.. 

 

here is my conditional.. I had to double quote the single quotes to escape them but other than that this is what works fine in the compose field

If(equals(triggerBody()['text'],'Alpha'),'(substringof(''@{triggerBody()[''text_3'']}'',AVehicles/Title) or substringof(''@{triggerBody()[''text_3'']}'',TADeploym/Title))',If(equals(triggerBody()['text'],'Beta'),'(substringof(''@{triggerBody()[''text_3'']}'',BVehicles/Title) or substringof(''@{triggerBody()[''text_3'']}'',TBDeployme/Title))',If(equals(triggerBody()['text'],'Gamma'),'(substringof(''@{triggerBody()[''text_3'']}'',GVehicle/Title) or substringof(''@{triggerBody()[''text_3'']}'',TBDeploym/Title))',If(equals(triggerBody()['text'],''),'(substringof(''@{triggerBody()[''text_3'']}'',AVehicles/Title) or substringof(''@{triggerBody()[''text_3'']}'',BVehicles/Title) or substringof(''@{triggerBody()[''text_3'']}'',GVehicle/Title) or substringof(''@{triggerBody()[''text_3'']}'',TADeploym/Title) or substringof(''@{triggerBody()[''text_3'']}'',TBDeployme/Title) or substringof(''@{triggerBody()[''text_3'']}'',TBDeploym/Title))','nothing'))))

 

Please advise. 

Thanks in advance

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 432

#2
11manish Profile Picture

11manish 313 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 154

Last 30 days Overall leaderboard