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 / Power Automate Desktop...
Power Automate
Unanswered

Power Automate Desktop run application and pass parameters string

(0) ShareShare
ReportReport
Posted on by 4

Hello,
I'm trying to run an application with parameters with Power Automate Desktop and i encounter a problem.

I have to run a program with string in parameter but the quote seem to be removed when Power Automate run the program.

When i run the flow, i can see an MySql windows open and close imediately. it's too fast to view any error.
The only return i have is the AppExitCode and it is at 1

You can see in the screenshot what i want to do.

qmgt_0-1686733830155.png

i have already tried to escape the quotes with ` or ^ and use other quotes like " or ' but nothing working.
Anyone have an idea to resolve this problem ?

Thanks in advance.

I have the same question (0)
  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    If you run the program manually on the same computer, with the command line arguments that you used in PAD, does that work?

  • q-mgt Profile Picture
    4 on at

    Yes ! 
    I have launched same program with same parameters and it works perfectely

  • Gidi Profile Picture
    601 on at

    Hi,

    have you tried to use a variable with the command string and use it in the Run application action?

  • q-mgt Profile Picture
    4 on at

    Yes i have tried but it didn't works too

     

  • Gidi Profile Picture
    601 on at

    can you show the content of the variable?

  • CU08090150-0 Profile Picture
    2 on at
    I hate how PAD always seem to remove quotes of variables whenever passed as arguments, even when I tried to pass it as literal string

    One of my workaround for this problem is that I would place the string you want to pass as argument into a Custom variable, convert it into JSON, write it into a **CSV** temp file, *read* it back, and then use Right() to trim the literal string to have the argument you want to pass. But one of the problem with this method is that it messed up Unicode, badly, because something about converting to CSV and such.

    It's a lengthy workaround, so if anyone has a better option, please suggest it.
     
    Edit: Turn out wrapping it in triple quotes ("""ABC""") is all that's needed. 

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 271 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 171 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 148 Super User 2026 Season 2

Last 30 days Overall leaderboard