web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Automate - Building Flows
Answered

Get Items filter query is getting failed when filter value contains single code value

Like (1) ShareShare
ReportReport
Posted on 14 Jul 2024 18:30:37 by 102

1. I am using getitems to retrive the value from a Sharepoint List with a column 1 with Single code value.

2. When i am using column 1 in the filter query , flow is getting failed where ever column values are having data with single code.

    Example : Column name is Company. Values are follows

    1. Company Test 1

    2. Company 'Test 2'

    3. Company Test 3

 

Flow is getting failed while retriving value for Company 'Test 2'.

 

Kindly help here,

  • Verified answer
    SanmeshG Profile Picture
    1,947 Moderator on 15 Jul 2024 at 10:29:38
    Re: Get Items filter query is getting failed when filter value contains single code value

    Hi @RamKan2021  ,

     

    If you are trying to create an OData filter query with single quotes in your dynamic content , then try replacing the single quotes in the expression with another single quotes which will eventually create an escape sequence for the content in single quotes.

     

    Adding the screenshot and the expression for your reference , 

    Title eq '@{replace(triggerOutputs()?['body/Title'], '''', '''''')}'

     

    SanmeshG_1-1721039260649.png

    SanmeshG_2-1721039339753.png

     

    Hope this helps , do give this a thumbs up and mark this response as a solution if this answers your question.

     

    Thanks,

    Sanmesh

     

     

     

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete