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 / Construct JSON as outp...
Power Automate
Unanswered

Construct JSON as output variable

(0) ShareShare
ReportReport
Posted on by 469

Hi Experts 😊

 

I'm struggling with output variable construction in PAD and would appreciate your help.

 

Here is the scenario:

In the For Each loop I'm skipping through elements in my array. I'd like to construct output variable of all elements that meets certain condition, ideally as an array of JSON objects. Later I'd consume this output in cloud flow that calls PAD.

 

Your help is much appreciated 😉

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    HI @VaidasG 

    Could you please explain your scenario clearly

    As per my understanding if your cloud flow output is in JSON format and you want to get values in PAD then

    you can use convert JSON to custom Object and  you can use the values and data you require. 

     

    UshaJyothi20_0-1717992935020.png

     

    Hope this helps,

    Usha.

     

  • VaidasG Profile Picture
    469 on at

    Hi @UshaJyothi20 

     

    Thanks for your response ☺️ 

     

    Let me try to make this clearer...

     

    My PAD is processing work queue items. This runs as a loop till there are WQI in queued status. 

    For each queue item processed, I want to pass multiple values back to cloud flow that calls PAD. Hence I need to compose JSON object, or string that would act as an output variable from PAD.

     

    Rgs

    Vaidas

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Hi @VaidasG 

    Could you please try with set variable activity  and 

    give the JSON model you need to.

     

     

    Please try this

    Usha

  • VaidasG Profile Picture
    469 on at

    ended up building a String output variable in JSON format

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard