Skip to main content

Notifications

Power Automate - Power Automate Desktop
Suggested answer

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

Like (0) ShareShare
ReportReport
Posted on 10 Oct 2024 01:14:46 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:
  • Suggested answer
    eetuRobo Profile Picture
    eetuRobo 2,466 on 10 Oct 2024 at 05:42:05
    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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,316

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,290

Leaderboard
Loading started
Loading complete