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 / URGENT - Pass a JSON a...
Power Automate
Unanswered

URGENT - Pass a JSON array to PAD and loop through

(0) ShareShare
ReportReport
Posted on by 802

Hi, 

 

Is it possible to pass a JSON array to a PAD flow from a cloud flow? If so, how do I do this?  All I can see is pass a string to PAD, but we'd like to pass an array and then for each object in the array, loop through to perform a browser action.

 

Many thanks

K.

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    You just pass the JSON as a string, then convert it in the desktop flow.

    Copy this code into your PAD designer to see how it works.

    SET Input_JSON TO $'''{
    \"name\":\"John\",
    \"age\":30,
    \"cars\":[\"Ford\", \"BMW\", \"Fiat\"]
    }'''
    Variables.ConvertJsonToCustomObject Json: Input_JSON CustomObject=> JsonAsCustomObject
    LOOP FOREACH Current_Car IN JsonAsCustomObject['cars']
     Display.ShowMessageDialog.ShowMessageWithTimeout Message: Current_Car Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: True Timeout: 3
    END
    

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard