Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Filter query with Apsotrophe

(0) ShareShare
ReportReport
Posted on by 18

Hello,

 

I am trying to retrieve records from CDS using a filter query. The query is failing with the "Syntax error at position 26 in 'spe_description eq 'Jame's test record' and spe_level eq 100000000 and spe_foflag eq true"

 

What is the work around to filer the records for the string which contains apostrophe? 

 

agupta111_0-1598046084564.png

 

Thanks

AJ

 

 

  • Verified answer
    MJain Profile Picture
    2,450 on at
    Re: Filter query with Apsotrophe

    Hi @agupta111 ,

     

    Please follow the approach mentioned in either of following urls:

     

    https://www.inogic.com/blog/2019/07/replace-single-quote-from-attribute-in-microsoft-flow/

     

    https://sharepains.com/2019/10/07/handling-apostrophes-in-microsoft-flow/

     

    Thanks

  • Verified answer
    Sutherland Profile Picture
    on at
    Re: Filter query with Apsotrophe

    Hello agupta111

    Are you consulting contain function in Filter Query? You could refer to below expression

    Johnnyg_0-1598196490237.png

    related blog for reference:
    https://diyd365.com/2019/11/20/every-power-automate-ms-flow-filter-query-you-ever-wanted-to-know-as-a-functional-consultant/
    https://www.cloudfronts.com/using-contains-filter-query-in-ms-flow/

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow