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 Apps / Passing Arguments (Inc...
Power Apps
Unanswered

Passing Arguments (Including Array) to PowerAutomate Flow as JSON

(1) ShareShare
ReportReport
Posted on by

Hello!

 

I have a PowerAutomate Flow that I want to pass more than twenty arguments into from PowerApps. I am trying to accomplish this by passing them all as a JSON string, as explained in this post: https://powerusers.microsoft.com/t5/Building-Power-Apps/Power-App-data-to-Automate-More-than-20-inputs/td-p/1825812 

 

What's making things tricky is that one of my inputs is multi-select/an array of email addresses. I've been referencing this forum post as well to try to figure out how to deal with that: https://powerusers.microsoft.com/t5/Building-Power-Apps/Pass-multi-person-field-value-as-parameter-to-Flow/td-p/445632 

 

Here's what I have so far. I don't think I'm too far off, but I just can't quite figure it out. Any help would be greatly appreciated. arrayjson.pngarrayjson2.pngarrayjson3.png

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    YOu are very close.  But you don't need the JSON() function in the Parse JSON.  Just use the string you get from the Trigger and then after running it once use the output from the trigger to generate the schema in the Parse JSON.

    image.png

  • Community Power Platform Member Profile Picture
    on at

    Thanks to your help, I was able to make significant progress. However, I'm struggling to take the email addresses from PowerApps and put them into an array for use in my PowerAutomate flow. I would greatly appreciate any insights as to how to accomplish this. 

    arrayjson5.pngarrayjson6.pngarrayjson7.png

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    The easiest way to create an array that you can pass as JSON to the flow is to create a Collection.  When you put the collection inside JSON() it will become a JSON array when received in the flow.  If you create a collection and add that as a property to an object you'll get what you are looking for.

  • Community Power Platform Member Profile Picture
    on at

    Please forgive my ignorance, but I thought I had already created a collection to pass to the flow: 

     

    ClearCollect(AssignedToList,{assignee: CR_ASSIGNEDTO_Value.SelectedItems});

     

    Set(
    PowerAppsInput,
    {
    AssignedTo: JSON(AssignedToList,JSONFormat.IgnoreBinaryData),

    }

    )

     

    I think my issue may be accessing the array within the flow properly, rather than passing the array to the flow, but I could very well be wrong. 

  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    I don't think you want to translate the collection using JSON() when adding it to the variable.

    PowerAppsInput,
    {
    AssignedTo: AssignedToList
    }
    )
  • Community Power Platform Member Profile Picture
    on at

    You're exactly right. Thank you very much for all of your help. 

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard