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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Combining multiple str...
Power Automate
Unanswered

Combining multiple strings into one Array

(0) ShareShare
ReportReport
Posted on by

Hi

 

New to Power Automate and I'm bumbling through trying to create some automated flows for work, and I'm having an issue that I'm sure must be easy to resolve, but I can't figure it out!

 

I am trying to take the answers from six separate questions on a Microsoft Form (all of which are multiple checkbox options) - I then need to combine all of these into an array so that I can continue to manipulate the data against information we hold elsewhere.

 

However, I've tried to do this in the following way and have hit a problem:


1) Initialize a Variable for the answers to all six questions:

Brawny2004_0-1596209701697.png

 

2) Use a Parse JSON to take the 'Stations' variable and convert to an array using the following schema:

 

{
"type": "array",
"items": {
"type": "string"

}
}

The problem is that the output from this parse JSON only has the answers from the first question of the six, and ignores all the others. The answers are there in the "Stations" variable, but then this schema is clearly ignoring everything after the first ]

 

Is there an easy schema that will do what I want it to do?

 

 

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @Brawny2004 

     

    You can try building your own JSON object

    Use a Object variable instead

    Try something like this:

     

    {
    “Question1”: “”,

    “Question2”: “”,

    “Question3”: “”,

    “Question4”: “”,
    “Question5”: “”,

    “Question6”: “”

    }

     

    put your dynamic content inside the “”

  • Rilsina Pegado Profile Picture
    on at

    Hi,

     

    1) Initialize a variable of type Object.

    2) To populate the variable, use action: Append to Array.

    3) In Append to Array- value will be the Json format like:

    {

    "Question1":"Input Dynamic Content Question1",

    "Question2":"Input Dynamic Content Question1"

    }

     

    Hope this helps!

     

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard