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 / Passing a proper array...
Power Automate
Answered

Passing a proper array back to Cloud Flow

(0) ShareShare
ReportReport
Posted on by 48

I am extracting info from an XML file in PAD as seen in Image 1.

For each item in the 'STAMPINFO Node' I am wanting to make each item a custom object also seen in Image 1.

Image_1Image_1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In each loop I store that Object into a list of objects to pass back to PA.

Though trying to loop through the List in Power Automate I get this Error.

 

Image_2Image_2

 

 

 

 

 

 

 

 

So I am asking, how do I go about making all of my info a proper Array so I may loop through it in PA?

 

Thanks in advance for any guidance !

I have the same question (0)
  • Verified answer
    VJR Profile Picture
    7,635 on at

    @Laser_Tim_88 

    Since 'Stamp' is a Custom Object have you tried what happens when you use "Convert Custom Object to JSON" action of PAD.

    This link is for passing data from Desktop to Cloud but may give you some hints to do something.

     

  • Verified answer
    Laser_Tim_88 Profile Picture
    48 on at

    Thanks for the Suggestion @VJR 

    I ended up making the Custom Object into JSON like you suggested,

    though to make it an array I start by making the list before hand and add a '['

    Then in each loop I add the Custom object as JSON, next add a ','.

    After the loop is done I remove the last ',' and add the closing ']'.

    Then once the list is in PA I am able to Parse the JSON and loop through it!

     

    Thanks again!

     

    And if anyone has a simplified way of making the array in PAD then I am all ears. I`m always trying to cut down on steps!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard