web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to extract html bo...
Power Automate
Unanswered

How to extract html body as a variable from the value in a given JSON sample

(0) ShareShare
ReportReport
Posted on by 147

I am collecting log entries in the Team's chat and after several "Parse JSON" actions I end up with the core "Body" from the log which looks like that:

 

 

[
 {
 "name": "Module",
 "value": "<p>NewProductNotification</p>"
 },
 {
 "name": "Message",
 "value": "<p>New entity created, but could not find a child Item and cannot send a mail to the Product Owner, sending to CCAddress if applicable...</p>"
 }
]

 

 

The last mile should be straightforward: Parse JSON once more using the above data as a schema template, select from the parsed body the name and value and use them. It works for the Module but not for the Message

I tried the following method to extract the message in my sandbox without success. I tried to convert the Message to the plain text but I can see as input only <p></p>

How to get the whole piece of the Message and save it as a variable. I want to use it later to save it in the SharePoint list and also convert it to plain text. 

 1a.png

1b.png

1c.png

When the flow runs...

 

653206d0-bcb5-40d8-87c9-52791871afc5.png

2b.png

2c.png

2d.png

Any tips?

Categories:
I have the same question (0)
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hey @Michal 

     

    Your message is in the 2nd object [1], not the first [0].  Therefore you are looking for:

     

    body('select')?[1]?['message']

     

    Damien

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard