cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tissanfr
Frequent Visitor

What is the syntax for an Odata filter in a CDS Get Records component ?

I want to get specific records from a custom entity using the Common Data Service "get records" component

In my "filter" field, i'm entering :

new_countrycode eq '@{body('SelectAccount_Country')?['new_code']}' AND ( startswith(new_postalcode,'@{body('SelectedAccount')?['address1_postalcode']}') eq true OR new_postalcode eq null)

 

The idea is to get all the records with the right countrycode, and with either no postalcode, or a postalcode starting with a specific string.

 

But my filter syntax is wrong, and I don't know how to fix it. Could someone tell me what I'm doing wrong plz?

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User III
Super User III

Hi @tissanfr 

 

Believe your Boolean filter is true change this to 1.

 

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

View solution in original post

2 REPLIES 2
abm
Super User III
Super User III

Hi @tissanfr 

 

Believe your Boolean filter is true change this to 1.

 

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

View solution in original post

v-bacao-msft
Community Support
Community Support

 

Hi @tissanfr ,

 

Have you tried changing true to 1 and seeing the Flow run history?

Please take a try and feel free to let us know if the issue still exists.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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.

Users online (3,449)