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

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Suggested answer

How to pass variable from PAD to JS in 'Run JavaScript Function'? Please help! Thanks!

(0) ShareShare
ReportReport
Posted on by 2
Hi Expert,
 

I am currently facing a challenge with the "Run JavaScript Function on Web Page" action. I need to transfer the content of a variable from Power Automate Desktop to a JavaScript script that executes as part of this action on a web page. However, I'm unsure of the correct method to facilitate this data transfer between the desktop flow and the JavaScript environment embedded in the web page.

 

Thank you for your assistance!

Categories:
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,126 Super User 2025 Season 2 on at
    How to pass variable from PAD to JS in 'Run JavaScript Function'? Please help! Thanks!
    Use it like you would normally in PAD but just have the variable be inside double quotes:

    function ExecuteScript() {

    var PADvar = "%NewVar%";

    return PADvar;

    }


     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard