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 Automate
Answered

Format Email

(0) ShareShare
ReportReport
Posted on by 381

Hello All. 

 

I have a email, whose output looks like this 

 

[{"Item Name":"Item A ","Item ID":"9F6FE723","Date":"2021-09-03"},{"Workspace Name":"ItemB","Item ID":"B174AB0B","Date":"2021-08-27"}]

 

i need to format this, preferably into a table in the email

 

1. Item : Item A

   Item ID : 9F6FE723

   Date : 2021-09-03

 

2. Item : Item B

   Item ID : B174AB0B

   Date : 2021-08-27

 

There may be several more items, i am just using 2 as an example.  

 

I tried to use the slit function, so whenever there is }, split the line into the next row - but for some reason, this add some funny characters to the text. 

 

Can someone assist me please? Having the numbering would be beneficial. 

 

Thanks

 

 

Categories:
  • Verified answer
    Ellis Karim Profile Picture
    12,331 Super User 2026 Season 2 on at

    You could use a Select and Create Table action:

    ekarim2020_3-1630941593284.png

    Expression for Item:

    if(empty(item()?['Item Name']), item()?['Workspace Name'], item()?['Item Name'])

    Expression for ItemID:

    item()['Item ID']

    Expression for Date:

    item()?['Date']

    ekarim2020_2-1630940930174.png

    ekarim2020_0-1630942205012.png

    The expression only works if there is a property called 'Item Name' or  'Workspace Name'.  If neither exists, item will be set as null:

    ekarim2020_4-1630941942889.png

    However if there are going to be a lot of variations for the item property name, you may find it easier to replace all of the variations of the text (using the replace function) to a single property name (eg. Replace all 'Workspace Name' to 'Item', replace 'Workspace Name variation text' to 'Item' and so on) . You wont need to use the Select operation.

    Ellis

  • Vstar19 Profile Picture
    381 on at

    Again, Thank you very much Ellis. You have been my saviour this week. 

     

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
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 335 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard