cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User III
Super User III

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

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

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

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

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

View solution in original post

Highlighted
Community Support
Community Support

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

 

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
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (3,652)