cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frog64
Helper II
Helper II

Filter query syntax error - List items in table

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

6 REPLIES 6
abm
Super User III
Super User III

Hi @Frog64 

 

Try 

 

PersonnelNumber eq '000034' and IsPrimaryPosition eq  true



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
Frog64
Helper II
Helper II

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'.

Frog64
Helper II
Helper II

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
Super User III
Super User III

Hi @Frog64 

 

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

 

try

 

IsPrimaryPosition eq 1



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
Frog64
Helper II
Helper II

I already tried but it doesn't work 😥

abm
Super User III
Super User III

Hi @Frog64 

 

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

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,285)