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 / Pass JSON array variab...
Power Automate
Unanswered

Pass JSON array variable to a string variable in a child flow

(0) ShareShare
ReportReport
Posted on by 36

I am building a workflow and I have an array of JSON objects stored in a array type variable.

 

I have created a child flow that accepts the same JSON array as a parameter but I can't pass an array due to limitation on child flow, I have to pass that array as a string.

 

Is there any way to pass array to a child function as as string or nay other way? Something like JSON.stringify(ArrayVariable) in flow.

 

 

Categories:
I have the same question (0)
  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hi!

    Assuming you have your array stored in a varaible called 'myOutputArray', I would try with the following WDL expression:

    string(variables('myOutputArray'))

    Not in my laptop, unable to test

  • michaelshparber Profile Picture
    111 on at

    @efialttes 

    How do I convert this string back to an array inside the child flow?

  • sa105 Profile Picture
    36 on at

    in the child workflow, create a Parse JSON action and specify the schema of you JSON array and pass string as input parameter.

  • ericwhitley Profile Picture
    137 on at

    This method works for me, even on large datasets.

     

    I set this for a connection to a Shared Calendar and I can pass 143 events to a Child flow.  (I can't get the connector to grab more than 143 events at a time but I bet it would handle more.  Eventually you may run into size limitations for the string.)

  • aallen5658 Profile Picture
    18 on at

    What if my Parse JSON is giving the error below? I used the output from the trigger of the child flow to generate a schema.

    [
      {
        "message": "Invalid type. Expected Object but got Array.",
        "lineNumber": 0,
        "linePosition": 0,
        "path": "",
        "schemaId": "#",
        "errorType": "type",
        "childErrors": []
      }
    ]

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard