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 / Extract Json data from...
Power Automate
Unanswered

Extract Json data from SharePoint List Column to create HTML and PDF

(0) ShareShare
ReportReport
Posted on by 54

WhatsApp Image 2022-09-16 at 12.04.27 PM.jpeg

 

I am using this flow to get items from a SharePoint list and send email.

One of the columns in SharePoint list contains JSON data. The Column name is Results.

WhatsApp Image 2022-09-16 at 12.22.47 PM.jpeg

When the PDF is generated the Result comes in the Json format. I want to Break it into Rows and columns.

How can I handle it. 

 

Thanks

Categories:
I have the same question (0)
  • Redders Profile Picture
    546 on at

    Parse JSON action will provide you with dynamic content from the JSON.

     

    Unless you know how to Parse JSON, you will need a sample of the JSON when using the Parse JSON so make sure you have this on hand beforehand.

     

    Once you have Parsed the JSON, you can do what you want with the dynamic content

  • AdityaDani Profile Picture
    54 on at

    can you direct me to a link or resource where i could learn the same?

     

    how can i select the one column in get items to use in parse json action?

  • v-bofeng-msft Profile Picture
    on at

    Hi @AdityaDani ,

     

    1\Crate a new empty array variable

    2\You need to iterate through the data source

    In each loop

    a\use JSON functions in each loop to convert the JSON string to an arrays,

    b\use 'create html table' to convert the array to HTML string

    c\Constructs a new Object with the values in the current loop(HTML String,items('Apply_to_each')['Age'],items('Apply_to_each')['Job title']……)

    d\Append the object to the new array variable

    3\Use 'create html table' to convert the array variable to HTML string

    4\Note that some symbols such as '<' and '>' will be escaped and you need to convert them back using the reset function.

     

    Best Regards,

    Bof

  • Redders Profile Picture
    546 on at

    Hi @AdityaDani,

     

    I don't have a resource that I could direct you to I'm afraid, I have just learned by googling and trial and error.

     

    It is fairly straightforward though, a couple of times using it and it will become second nature.

     

    Before the Select item, add in a parse JSON, use the results from the get items in the content field. 

    Redders_0-1663319583603.png

    Like I said in the previous comment, make sure you have the sample JSON from the output prior to adding the Parse JSON in and so when you click "Generate from sample", you can paste it in there

    Redders_1-1663319780586.png

    I haven't needed to parse JSON in the way that you are attempting to do it (as part of data from a get items) and so, I think it may need to be linked back in with your original data from your get items in some way. Like I said, I haven't done it before but getting the JSON in a useable format is the first issue

     


    ━━━━━━━━━━━━━━━━━━━━━━━━━
    If I have answered your question, please mark your post as Solved.
    Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.
    If you liked my response, please consider giving it a thumbs up. Thank you!

     

     

  • AdityaDani Profile Picture
    54 on at

    WhatsApp Image 2022-09-16 at 6.30.43 PM.jpeg

     

    Like this?.

     

    How should i add the parse json next ?

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard