cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
3von
Frequent Visitor

HTML table to comma separated values

I receive data like this:

<tr><td colspan="2"><strong></strong></td></tr><tr><td colspan="2"><table><tr><th>_empty_</th><th>unique:2[]</th><th>unique:3[]</th></tr><tr><td>Male</td><td>50-59</td><td>Yes</td></tr><tr><td>Male</td><td>12-17</td><td>No</td></tr><tr><td>Female</td><td>50-59</td><td>Yes</td></tr></td></tr>

 

I'd like it to look something like this:

 

Male,70-79,Yes,Male80-89,Yes,Female,60-69,No

 

Is this possible?

1 ACCEPTED SOLUTION

Accepted Solutions

I ended up figuring out a way Power Automate receives the data from Jotforms.com so there's no need for adding commas anymore.  Thank you for taking the time to help me.

View solution in original post

13 REPLIES 13
SudeepGhatakNZ
Multi Super User
Multi Super User

You can get it done in two ways:

1) Out of the box (with no premium connectors)

Power Automate: Get HTML tag value - Manuel T. Gomes (manueltgomes.com)

2) You could convert the HTML into JSON using this connector and then use Parse JSON to extract the values

SudeepGhatakNZ_0-1691022366440.png

 

If my suggestion helped you, please give it a Thumbs up and Mark it as a Solution so that it can benefit others in the community.
Sudeep Ghatak
Microsoft MVP, Business Applications
www.sudeepghatak.com
3von
Frequent Visitor

I can't find 'Get HTML tag value' and I have no idea how to use Parse JSON 😞

3von
Frequent Visitor

So I've learned that HTML to JSON doesn't work in my case because I get an error saying that there are no tables found.

SudeepGhatakNZ
Multi Super User
Multi Super User

@3von ,

Please refer the attached flow.

SudeepGhatakNZ_0-1691099885387.png

 

 

 

If my suggestion helped you, please give it a Thumbs up and Mark it as a Solution so that it can benefit others in the community.
Sudeep Ghatak
Microsoft MVP, Business Applications
www.sudeepghatak.com
3von
Frequent Visitor

 Thanks for the help.  Do I need the desktop version of Power Automate to use the attachment?

SudeepGhatakNZ
Multi Super User
Multi Super User

No. Just go to my flows and import it.

SudeepGhatakNZ_0-1691103660970.png

 

If my suggestion helped you, please give it a Thumbs up and Mark it as a Solution so that it can benefit others in the community.
Sudeep Ghatak
Microsoft MVP, Business Applications
www.sudeepghatak.com
3von
Frequent Visitor

I get this error.

 

3von_0-1691158986257.png

 

3von
Frequent Visitor

Oh I got it now.  I had to use the legacy option.  Thanks.

3von
Frequent Visitor

I duplicated what you created and this is the error i get:

 

3von_1-1691161418495.png

 

3von_2-1691161462119.png

 

3von
Frequent Visitor

Ok so I fixed the above error.  Now I get this error when I run the flow:

 

3von_3-1691162117377.png

 

3von
Frequent Visitor

I see the issue now.  When I tried the form again, I only entered 2 people.  When I entered 3 people, i get no errors.  However, it gave me no output and I need the automation to be able to process anywhere from 1 to 15 people.

SudeepGhatakNZ
Multi Super User
Multi Super User

Can you provide me some sample data to test?

 

If my suggestion helped you, please give it a Thumbs up and Mark it as a Solution so that it can benefit others in the community.
Sudeep Ghatak
Microsoft MVP, Business Applications
www.sudeepghatak.com

I ended up figuring out a way Power Automate receives the data from Jotforms.com so there's no need for adding commas anymore.  Thank you for taking the time to help me.

Helpful resources

Announcements

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (2,908)