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 Automate
Answered

Filter query syntax

(0) ShareShare
ReportReport
Posted on by 181

Hi,

 

I'm trying to add a filter on a list rows action, but my syntax seems to be incorrect. I have it written as so:

JobID eq @'1234' AND (Event eq 'QC Check' OR Event eq 'Audit')

 

JobID and Event are the fields. I want the action to list all the records that have a JobID of 1234 and also have an Event as 'QC Check' or 'Audit'

 

Any ideas?

 

Thanks.

Categories:
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @asafweis ,

    from where to you want filter rows? SharePoint? Datavers?

    Can you share the detailed flow in Edit Mode?

     

    BR,

    Marco

  • asafweis Profile Picture
    181 on at

    It's coming from Dataverse.

    asafweis_1-1660724600696.png

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    ok @asafweis ,

    I suggest to use this Dataverse connector:

    MarconettiMarco_0-1660724763525.png

    and in the List rows action, use the Fetch XML query, got from the Dataverse Advanced Find, it's much easier:

    Presentation2.gif

     

    If I have answered your question, please mark my post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

  • asafweis Profile Picture
    181 on at

    Unfortunately I can't see this new connector on this old flow. The new connector only appears on new flows that create. 

    Is there anyway to bring up the newer connector?

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @asafweis ,

    could you please re-create the flow?

     

    BR,

    Marco

  • asafweis Profile Picture
    181 on at

    That would be a lot of work so I would prefer not. 

    Is there another way?

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @asafweis ,

     

    Could you please share more details about your scenario? What types are the two columns? What error have you got from this action?

     

    As the alternate, you can only apply "JobID eq varJobID" on Filter query and use a Filter array operator to filter the outputs of List rows on the other two conditions. I believe that filter on Job ID has enough restricted the rows getting from data source.

     

    Below is a video about syntax of filter query Dataverse LookUp and Choices columns:

    Power Automate Flow odata filter dataverse lookup and choice columns - Bing video

     

    Best regards,

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @asafweis ,

     

    Have you solved this problem?

     

    Best regards,

  • Verified answer
    asafweis Profile Picture
    181 on at

    Yes I did. I ended up using this:

    (crff0_jobid eq '@{body('Parse_JSON')?['EmbedContextParameters']?['varJobID']}' and crff0_event eq 'QC Check') or (crff0_jobid eq '@{body('Parse_JSON')?['EmbedContextParameters']?['varJobID']}' and crff0_event eq 'Audit')

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard