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 / Covert Array into Object
Power Automate
Answered

Covert Array into Object

(0) ShareShare
ReportReport
Posted on by 211

Hello together,

 

need your help. I got a array looking like this:

 

[
  "Anrede",
  "Herr",
  "",
  "Name",
  "Max Muster",
  "",
  "E-Mail",
  "maxmuster@gmx.de",
  "",
  "Telefon",
  "07221/12345678",
  "",
  "1. Pflegegrad des Pflegebedürftigen",
  "5",
  "",
  "2. Besonderheiten",
  "Stark eingeschränkte Mobilität, Regelmäßige Nachteinsätze",
  "",
  "3. Deutschkenntnisse der Betreuungskraft",
  "Mittlere Kenntnisse",
  "",
  "4. Voraussichtlicher Beginn der Betreuung",
  "Sofort",
  "",
  "5. Ort, an dem die Betreuung gewünscht ist",
  "76532 Baden-Baden",
  "",
  "6. Für wen wird die Betreuung gesucht?",
  "Angehörige",
  "",
  "7. Zusätzliche Informationen"
]
 
I want to turn this into an object like:
 
{
"Anrede":"Herr",
"Name":"Max Muster"
}
 
what is a good way to achieve this?
 
Thanks a lot.
Categories:
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Sven4

    I create a test flow, the Compose action is used to create your test data.

    vyueyunmsft_0-1716801670597.png

     

    vyueyunmsft_1-1716801791980.png

     

     

    chunk(range(0,length(outputs('Compose'))),3)
    outputs('Compose')?[item()?[0]]
    outputs('Compose')?[item()?[1]]
    json(concat( '{', replace(replace(replace(replace(string( body('Select')) , '{',''),'}',''),'[','') , ']' , '') , '}'))

     

    The result is as follows:

    vyueyunmsft_2-1716801817641.png

     

     

     

    Best Regards,

    Yueyun Zhang

  • Sven4 Profile Picture
    211 on at

    @v-yueyun-msft works perfectly. Not really witchcraft but you helped a lot 🙂

    thank you very much!

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 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard