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 / Convert an object into...
Power Automate
Answered

Convert an object into multiple line string

(0) ShareShare
ReportReport
Posted on by

Hello, I have an object, lets say

 

{

"name": sdfasdfasdf

"address": 123 broad street

},

{

"name": sdfsdafsdfasdfa

"address": 321 broad street

},

 

I would like to convert this into a string that has a new line for each item

 

name - address

name - address

 

Im not looking to put this into a table cause the formatting is not what I require. 

Everything I've read and tried doesnt seem to work.. 

 

Any help would be greatly appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    Hey there, 

     

    All you'll need to do is Parse the JSON, Initialize a String, and then Append to String (which will turn into a For Each). 

    Looks like this:

    Rhiassuring_0-1649394551801.png

     

    Are you familiar with Parse JSON? If you need me to run through that, I can.

    Here's a compose showing the final output from the Append String looping through:

     

    Rhiassuring_1-1649394635845.png

     


    Cheers,


    Rhia

  • jimi_hendrix Profile Picture
    on at

    Appreciate the response.. After a good nights rest, the issue I was having was due to the fact I was trying to put a new line in HTML using  /n or enter, etc. I needed to add <br> as the HTML line break to make this work.. So between a combination of what I was using and your solution above and the <br> I got it working.. Thanks again

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @jimi_hendrix ,

     

    Glad to see you resolved the issue.

    You could mark your own reply to close the case.

     

    Best Regards,

    Wearsky

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 241 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 179

#3
Haque Profile Picture

Haque 159

Last 30 days Overall leaderboard