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 / Problem passing an arr...
Power Automate
Unanswered

Problem passing an array to JavaScript function on web page

(0) ShareShare
ReportReport
Posted on 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 at

    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

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

#2
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard