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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter query syntax er...
Power Automate
Unanswered

Filter query syntax error - List items in table

(0) ShareShare
ReportReport
Posted on by 110

Hi,

I try to filter an Odata query on a Primary position that is assigned to an employee.

I used a connector with D365 Fin & Ops.

An employee can be assigned to several positions, but I only want the Primary position that he is assigned to.

The part with PersonnelNumber eq '000034' works fine! But when I try to add the primary position query, it doesn't work anymore...

Here are the tests I did:

PersonnelNumber eq '000034' and IsPrimaryPosition eq 'Yes'

2020-12-15_16-15-40.png

 

PersonnelNumber eq '000034' and IsPrimaryPosition eq Yes

2020-12-15_16-19-57.png

 

Here is the field I want to filter on: it is a Yes/No checkbox field.

2020-12-15_16-35-40.png

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Frog64 

     

    Try 

     

    PersonnelNumber eq '000034' and IsPrimaryPosition eq  true

  • ConsultantIT Profile Picture
    110 on at

    Hi @abm,

     

    I tried but it doesn't work: An error has occurred. A binary operator with incompatible types was detected. Found operand types 'Microsoft.Dynamics.DataEntities.NoYes' and 'Edm.Boolean' for operator kind 'Equal'.

  • ConsultantIT Profile Picture
    110 on at

    When I look at the output of this step, here is the result: 

    "IsPrimaryPosition":"Yes"

    I tried:

    IsPrimaryPosition eq 'true'

    IsPrimaryPosition eq 'True'

    IsPrimaryPosition eq 'Yes'

    IsPrimaryPosition eq 'yes'

    IsPrimaryPosition eq '1'

     

    Does someone have an idea?

     

    Thanks

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Frog64 

     

    Thanks for the update. If your output is 'Yes' then it should work with  IsPrimaryPosition eq 'Yes'

     

    try

     

    IsPrimaryPosition eq 1

  • ConsultantIT Profile Picture
    110 on at

    I already tried but it doesn't work 😥

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Frog64 

     

    I don't have D365 Fin & Ops to try this. Hopefully someone from community help you soon.

     

    Thanks

  • yaggii Profile Picture
    4 on at

    Try this: 

    IsPrimaryPosition  eq Microsoft.Dynamics.DataEntities.'Yes'

  • Verified answer
    Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    Just solved this one, updating this for future users to see: 

     

    @Frog64 

     

    This is the correct way to solve this: 

     

    IsPrimaryPosition eq Microsoft.Dynamics.DataEntities.NoYes'No'

    IsPrimaryPosition eq Microsoft.Dynamics.DataEntities.NoYes'Yes'

     

    So, AnyBooleanColumnHeader eq Microsoft.Dynamics.DataEntities.NoYes'No'

     

    If you're in the US, you might have to replace 'Yes' with â€™Yes’. 

     

    Best Regards

    Heartholme

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard