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 Platform Community / Forums / Power Automate / How to pass variable f...
Power Automate
Unanswered

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!

I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,161 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

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard