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

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 blog
Power Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User
Super User

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 blog
Power Automate Video Tutorials
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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,076)