web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to add single quot...
Power Automate
Answered

How to add single quotes to each string in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 4

Hello everyone,

I have an list which is look like this :

 

co21_0-1645534926299.png

 

And i used Join Text Action to separated and join each string with comma and result is going to be :

570-AAIS,580-ADGX,KM5221WBKB-NOR,570-AAIS,DELL-E2720HS

 

And now i want to add single quotes to each string, where i can pass to IN operation into my SQL Query.

The result i'm looking for :

'570-AAIS','580-ADGX','KM5221WBKB-NOR','570-AAIS','DELL-E2720HS'

 

Can anyone please help me to archive this in Power Automate Desktop ?!

Thanks in advance 🙂

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Put whatever you actually want into an Escape Text action. The variable produced %EscapedText% is the altered version so that when you use it in anything later, PAD undoes it and gives you what you originally wanted. 

  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    Hmmm I don't get it (I am a bit slow today 😊)
    Could you explain how that would translate text from 

    a,b,c,d to 'a','b','c','d'

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    LOOP 0 --> %List.Count-1%

        SET VARIABLE %List[LoopIndex]% TO '%List[LoopIndex]%'

    END LOOP

  • Verified answer
    Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    You could also do it like this in two lines of code 😁

    Highboy_0-1645608411528.png

    Highboy_1-1645608437920.png

    Gives the result

    Highboy_2-1645608469134.png

     

  • co21 Profile Picture
    4 on at

    Many thanks for help 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 284 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 188 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard