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 : cLuCkK/vCCjPsljxWCoqNi
Power Automate - Power Automate Desktop
Unanswered

Problem passing an array to JavaScript function on web page

Like (0) ShareShare
ReportReport
Posted on 17 Aug 2021 16:50:29 by
Hello, I am having problems to run a piece of javascript on web while trying to access elements of an array previously generated on the same flow. A syntax error is thrown on the browser's terminal.

 

The line of code is as follows:

 

var q='%currentQ[i]%'

 

currentQ is an array of strings and i is an iterator in a loop on the flow. I have also tried to pass a string alone instead of an array, but the problem is still showing up.

  • NikosMoutzou Profile Picture
    Microsoft Employee on 18 Aug 2021 at 14:22:07
    Re: Problem passing an array to JavaScript function on web page

    Hello @marcelostorm !

     

    Could you please provide more information on the error that is being generated in browser's console? What is the error exactly?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2