No video

How to use Power Automate to parse a HTML Table and convert to JSON

  Рет қаралды 26,362

Paul Murana

Paul Murana

Күн бұрын

How to #PowerAutomate to parse and convert a HTML table to a JSON array for further use in your cloud flows. Once the HTML Table has been converted the data can be added to a SharePoint list, Dataverse or Excel table.
If you found this solution useful, I'd appreciate a donation to the channel:
www.buymeacoffee.com/paulie

Пікірлер: 95
@robofski
@robofski 3 жыл бұрын
I love these real world use cases that you demonstrate, amazing stuff!
@PaulieM
@PaulieM 3 жыл бұрын
Thank you for the feedback Dan. I find real world use cases a bit more interesting as they bring unexpected complications. Glad you are enjoying the videos.
@sashawarchoon1989
@sashawarchoon1989 2 жыл бұрын
THIS CHANNEL DEFINITELY DESIRES MORE SUBSCRIBERS!
@ruthjmhughes
@ruthjmhughes 2 жыл бұрын
Hi Paulie, thank you SO MUCH for this video. I am brand new to Power Automate and have been trying to extract table data from hundreds of emails for WEEKS now. This video has solved my problem. I cannot thank you enough.
@PaulieM
@PaulieM 2 жыл бұрын
Thank you Ruth, so glad it was helpful to you.
@asdrubz
@asdrubz 2 жыл бұрын
Uau, great job!! Thank you very much for the didactic explanation! Best of all about filtering content and handling text efficiently in Power Automate.
@forsangram
@forsangram 2 жыл бұрын
This video really saves a lot of time for me. Thanks a lot
@leungchunyin4281
@leungchunyin4281 2 жыл бұрын
best video to learn power automate step by step, not only show the result, step by step to work out the solution love it
@PaulieM
@PaulieM 2 жыл бұрын
Thank you Leung 🙏
@InFeRn03k
@InFeRn03k 3 жыл бұрын
perfect explanation, your videos are really usefull tnx for all
@ConorMageeIrl
@ConorMageeIrl Жыл бұрын
Fantastic video - many thanks for your help. And not too fast all!!
@MrKbid
@MrKbid Жыл бұрын
It took me 2 days but I got my slightly different tables and data to work thanks to this video
@tuworlds
@tuworlds 3 жыл бұрын
this is probably the best video on youtube you got a sub from me i learnt alot on this vid thanks
@BeInspiredAndMotivat
@BeInspiredAndMotivat 2 жыл бұрын
Thank you so much, I was searching for days to find a solution for this
@officeready6899
@officeready6899 3 жыл бұрын
Nice tutorial Paul!
@Luvinist
@Luvinist 2 жыл бұрын
Thank you very much, great explanation.
@aarunishekharjha5482
@aarunishekharjha5482 Жыл бұрын
Thank you for sharing your knowledge. Really helped me on my concepts. Thanks again!!
@Kchula
@Kchula 2 жыл бұрын
I rarely comment on people's videos but thank you so much for this VERY informative video. Whether you are a novice or need a refresher cuz you haven't done it in awhile (ME lol), this will help you with useful expressions which can be tricky at times. Thank you so much!!!
@PaulieM
@PaulieM 2 жыл бұрын
Thank you Kenia, I really appreciate your kind comment. 🙏 😊
@Kchula
@Kchula 2 жыл бұрын
@@PaulieM Hi Paulie, I'm getting an error on the very last part. Are you able to help? 'The template language expression 'split(item(), '^')[3]' cannot be evaluated because array index '3' is outside bounds (0, 2) of array.
@PaulieM
@PaulieM 2 жыл бұрын
@@Kchula try changing it to split (item(), '^')?[3] it’s because you’re trying to reference an element of an array that does not exist.
@FranciscoCamacho_fjcamachoj
@FranciscoCamacho_fjcamachoj 2 жыл бұрын
Excellent video!!! Thanks. I watched another procedure but yours is quite simple and clear.
@PaulieM
@PaulieM 2 жыл бұрын
Really pleased it was useful for you.
@funnypirate5626
@funnypirate5626 2 жыл бұрын
Thanks a lot. it helped me a lot in my learning period . I am new to power automate and it is in such more details explanation and with examples. which helped me in my project.
@shontinawesley432
@shontinawesley432 2 жыл бұрын
Bravo!!! This works great for me ...no issues! :)
@ajssoarestube
@ajssoarestube 3 жыл бұрын
Best Channel.
@FionaPascoe67
@FionaPascoe67 Жыл бұрын
Thanks so much with this example Paulie - sovled the problem that I've had - because it was real world made it so much easier to understand.
@PaulieM
@PaulieM Жыл бұрын
Glad it helped.
@AlanMartinezalnmb
@AlanMartinezalnmb Жыл бұрын
Thanks!!!! I helped me a lot
@johnandrews3114
@johnandrews3114 2 жыл бұрын
Incredibly helpful video
@PaulieM
@PaulieM 2 жыл бұрын
Thank you John - your feedback is appreciated.
@jamiestreets7084
@jamiestreets7084 Жыл бұрын
Thank you this has helped so much :)
@jamiestreets7084
@jamiestreets7084 Жыл бұрын
now im stuck trying to write this into an existing table within an excel template i have stored in sharepoint which then saves each table as a seperate excel spreadsheet which i plan on using each of these further to populate a master spreadsheet.
@Ali-ds5iy
@Ali-ds5iy 2 жыл бұрын
Hi Paulie, This was wonderful presentation unlike any other I have seen here. Have become a new subscriver now! Just two important qs: 1) How do I remove any row during the 'Row' stage, For example I have one non-empty row in the end? 2) How can i append the output without the headers. Like I have already the headers in one excel file but simply want to append every output below the headers? Thx!
@1mate2hip
@1mate2hip Жыл бұрын
How do I select the second table within the HTML list instead of the last table using the last expression?
@DreW-bm7fc
@DreW-bm7fc 6 ай бұрын
Thanks!
@DreW-bm7fc
@DreW-bm7fc 6 ай бұрын
thank you, enjoyed every of your video, greeting from indonesia
@dolfvc
@dolfvc 5 ай бұрын
@Paul, thank you so much, this helped me a lot. 1 Question is that you used in htmlTables "concat('
@koenmeijerink
@koenmeijerink Жыл бұрын
Thank you Paulie, great stuff! Xpath to me is still 'black magic', but I will figure out more on this in future I guess.
@PaulieM
@PaulieM Жыл бұрын
You really don’t need to figure it out anymore. You can just ask Chat GPT to build the queries for you.
@alok2k11
@alok2k11 7 ай бұрын
Hi this video is really helpful... But I'm looking for a way to have table headers dynamically. Maybe My table will have 4 or 5 or 3 columns only. So How can we bind the array of headers and . I'm able to get column headers into separate array and respective rows into separate. But unable to bind them into one Select Action to make json
@hushamahmed799
@hushamahmed799 Жыл бұрын
Hello Paulie thank you very much for this video. I'm new to power automate can you please advise me how can I select table 2 or 3 after the using the split?
@kylehelliar6293
@kylehelliar6293 Ай бұрын
hey Paul, what if you have a table that has questions in column A and the answers in column B ? how would you make the JSON then if you are not using the column headers for the output?
@shyampradhan5114
@shyampradhan5114 10 ай бұрын
Thanks for making this video❤
@PaulieM
@PaulieM 10 ай бұрын
Pleasure, glad it helped.
@HappySingh-pj6wj
@HappySingh-pj6wj 2 жыл бұрын
Nice one Paulie, spot-on content :) I have a question Is it possible to extract from a .html file saved in SharePoint or email attachment .? Many thanks
@thusithaariyananda1101
@thusithaariyananda1101 2 жыл бұрын
@Paulie M, I am very new to this and trying to get this output to Share point list, How to do it
@maanikarajmuthusamy2315
@maanikarajmuthusamy2315 11 ай бұрын
Nice and thank you for your support
@PaulieM
@PaulieM 11 ай бұрын
No problem, happy to help.
@Ali-ds5iy
@Ali-ds5iy 2 жыл бұрын
hi Pauli M, What if I do not want to select the last table but the middle one. What command to use then?
@jigarpatel1189
@jigarpatel1189 4 ай бұрын
goat!
@mryoyo1987
@mryoyo1987 Ай бұрын
Such a helpful video! If it works for me it would be so amazing. I completed all the steps of the video but i am not sure how to get the individual data points from the select step into Sharepoint items. I add the "create list item" and put the select item output in each of the columns. but it doesnt work. wouldn't i have to tell the flow which select item to put in the sharepoint field? seems odd putting the same thing in each. Your help (more of it, that is) would be so appreciated. AA
@fanzfanzilla
@fanzfanzilla Жыл бұрын
Hello, Thank you for the video. It's very useful for me. do you have a video for importing a CSV file that contains special characters?
@ashotavetisyan1337
@ashotavetisyan1337 Жыл бұрын
Hi. First of all, thank you very much for a thorough walk of the process. I was struggling with this for a couple of days until I found your tutorial. For the step of mapping, I used a loop to dynamically create JSON items since the user might add stuff to the table and I didn't want my output to break because of that. So in my mapping in 'select;, I used this: split(item(),'^')[0], and element [1] as value. It worked for me, but I was wondering if there is a better way of doing this? Also a question. How can i return the JSON that i got after the 'select' action so i can use it further on?
@PaulieM
@PaulieM Жыл бұрын
The output of the select action should be available in your dynamic content. You could use a parse json step after the select action - it would make things easier for you to reference.
@ashotavetisyan1337
@ashotavetisyan1337 Жыл бұрын
@Paulie M thank you for your response. I was able to fetch the output and cureently struggling with parsing :) However, as a workaround, i used the condition block and am checking in a loop if the item contains the value. I would assume there should be a way to fetch values from the json obj, but im too beginner to that right away :)
@wyattgreen4168
@wyattgreen4168 2 жыл бұрын
How would you grab the URL that is inside of the brackets instead of the text?
@germandeseta735
@germandeseta735 Жыл бұрын
Hello Paulie, I was following your video and doing step by step, everything was going well until I used the html to text connector. I got this alert "The flow was saved, but it couldn't be enabled because it contains connectors to apps that don't support the Gmail connector used in this flow" Do you know of a way to do that step differently? Thank you very much in advance for the video
@lavanyaaravindhan6083
@lavanyaaravindhan6083 3 жыл бұрын
Hi, Please share video like how to insert custom lookup field, custom yes/no field and custom choices field into Dataverse.
@hamzaiqbal2512
@hamzaiqbal2512 10 ай бұрын
Hey Paulie, love the video great explanation. Is it possible to take out a column, like how you took out a the first row ?
@PaulieM
@PaulieM 10 ай бұрын
Use the skip expression to go remove the first element from the resulting array.
@hamzaiqbal2512
@hamzaiqbal2512 10 ай бұрын
@@PaulieM and what step would this take place in ?
@KasiaWichrowska93
@KasiaWichrowska93 2 жыл бұрын
Great content!! What would you use if you only wanted to get first let say 5 rows from HTML table and ignore the rest?
@PaulieM
@PaulieM 2 жыл бұрын
I would think it would be easier to get every row, and then use the "Take" expression in a compose action to get only the first 5 rows of output. Does that make sense?
@KasiaWichrowska93
@KasiaWichrowska93 2 жыл бұрын
@@PaulieM Absolutely spot on! Thank you so much
@dhanishjain255
@dhanishjain255 2 жыл бұрын
Hi @Paulie, i am trying the step and getting error 'cannot be evaluated because array index '1' is outside bounds (0, 0) of array' on action: Select after filter array. The split expression 'split(item(),'^')[1]' onwards is not working but split(item(),'^')[0] is giving result. any thought?
@investandcyclecheap4890
@investandcyclecheap4890 2 жыл бұрын
same error :(
@carolinagoes2137
@carolinagoes2137 3 ай бұрын
@@investandcyclecheap4890 split(item(), '^')?[0] missed the "?"
@akshaykathuria06
@akshaykathuria06 2 жыл бұрын
Hi Pauline, Great video. Just like others I'm also facing the same error The template language expression 'split(item(),'^')[1]' cannot be evaluated because array index '1' is outside bounds (0, 0) of array. Any suggestions?
@Ali-ds5iy
@Ali-ds5iy 2 жыл бұрын
Im having the same issue.!!...haaalp!
@Ali-ds5iy
@Ali-ds5iy 2 жыл бұрын
oh just figured out...simply place the ? in between the array number and bracket closure.
@daurenkassymov4892
@daurenkassymov4892 Жыл бұрын
Ali, you're a legend! Thanks!
@daurenkassymov4892
@daurenkassymov4892 Жыл бұрын
Ali, you're a legend! Thanks!
@BEATWINCONTROL
@BEATWINCONTROL 8 ай бұрын
@@Ali-ds5iy thanks! it worked for me
@kylerodger6525
@kylerodger6525 3 жыл бұрын
Your videos are a life saver! But i'm getting an issue indexing anything other than element 0 on the Select step. It gives me error message: The template language expression 'split(item(), '^')[1]' cannot be evaluated because array index '1' is outside bounds (0, 0) of array. Can you suggest anything I should check? I followed your other steps religiously. Thanks!
@PaulieM
@PaulieM 3 жыл бұрын
Off the top of my head no idea. But if you want to do a screen share I will see if I can help you out? Get in touch via my blog
@jasonechevarria1430
@jasonechevarria1430 2 жыл бұрын
@@PaulieM What was the fix for this problem? I am receiving the same exact error message. Thank you in advance.
@PaulieM
@PaulieM 2 жыл бұрын
@@jasonechevarria1430 the person that asked the question had a mistake in the split. Are you stuck also?
@jasonechevarria1430
@jasonechevarria1430 2 жыл бұрын
@@PaulieM Yes I'm stuck as well. I cannot figure it out.
@PaulieM
@PaulieM 2 жыл бұрын
@@jasonechevarria1430 get in touch via my blog and I will do a session with you and help you out.
@maheswarin2684
@maheswarin2684 Жыл бұрын
can you please add the content of saving data to excel table
@jeffwright357
@jeffwright357 6 ай бұрын
kzbin.info/www/bejne/f6i1fIqXidOfabc "There is a fancier way of doing this..." What is this method? With the new editor layout, I'm struggling a little to do this step to remove the slash N's.
@dushy4486
@dushy4486 3 жыл бұрын
What if we don't know the column name like they are dynamic everytime
@PaulieM
@PaulieM 3 жыл бұрын
You can collect them from the first row. And use them as the column headings
@dushy4486
@dushy4486 3 жыл бұрын
@@PaulieM yeah but it can only happen when you have fix no. Of columns because you are indexing them. What if i don't know the number of columns that how many columns are coming from email table. how will I use indexing in that scenario??
@PaulieM
@PaulieM 3 жыл бұрын
@@dushy4486 you would use the range expression to dynamically build it.
@lavanyaaravindhan6083
@lavanyaaravindhan6083 3 жыл бұрын
Paulie, how could we add the expression, sorry I couldn't get your point.
@dushy4486
@dushy4486 3 жыл бұрын
@@PaulieM you mean we will put all the column names to an array then check the array length to create a dynamic range??
@yann6757
@yann6757 Жыл бұрын
why MS doesn't provide a html parser, all those steps just to convert html is timewaste.
Parsing Text from email with Microsoft Power Automate
17:53
Paul Murana
Рет қаралды 74 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 44 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 67 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 23 МЛН
How to parse complex JSON in power automate
20:43
Alireza Aliabadi
Рет қаралды 78 М.
How to Import Emails From OUTLOOK to EXCEL & why you want to do that!
7:04
Web Scraping Made EASY With Power Automate Desktop - For FREE & ZERO Coding
13:11
How to convert a HTML Table to JSON with Power Automate
11:40
Paul Murana
Рет қаралды 19 М.
Extract HTML Table from Email in Power Automate
22:33
DamoBird365
Рет қаралды 54 М.
How To Parse Emails and Populate SharePoint Lists Using Power Automate
20:16
How to parse a CSV file with Power Automate
8:04
Paul Murana
Рет қаралды 35 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 44 МЛН