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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to replace single ...
Power Automate
Unanswered

how to replace single quote with double quote in sql query while using power automate desktop

(0) ShareShare
ReportReport
Posted on by 162

select * from Table's

was we need to pass double quotes , i just want to replace in query itself

select * from Table''s

 

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @MitheshRpa ,

     

    Please find the attached solution.

     

    VishnuReddy1997_0-1713861313058.png

     

    Code:

     

    Database.Connect ConnectionString: OLEDB_ConnectionString Connection=> SQLConnection
    Text.Replace Text: $'''select * from [Sheet0$] WHERE [Type] <> \'e-Remito\';''' TextToFind: $'''\'''' IsRegEx: False IgnoreCase: False ReplaceWith: $'''\"''' ActivateEscapeSequences: False Result=> Replaced_Query
    @@copilotGeneratedAction: 'False'
    Database.ExecuteSqlStatement.Execute Connection: SQLConnection Statement: Replaced_Query Timeout: 30 Result=> QueryResult
    Database.Close Connection: SQLConnection

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

  • MitheshRpa Profile Picture
    162 on at

    Without using replace text activity , can i replace direcly in query ?

    MitheshRpa_0-1713863522408.png

     

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @MitheshRpa ,

     

    I don't think so we can do it. @Deenuji can you please confirm this.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @MitheshRpa 

     

    Could you please provide more details about your use case? Why do you need to replace double quotes with single ones? Even if you add them manually, wouldn't it work without any syntax issues? Could you elaborate on your use case so that we can assist you in a more appropriate manner?

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard