cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
martinav
Super User
Super User

Create collection from an html table

I have an apparently good quality html table.  I need to make this into a collection.  I see many ways to go the other way, but not this way.  Can do?

8 REPLIES 8
mdevaney
Super User
Super User

@martinav 

Can you please provide a sample of the HTML table?

PK_Hong
Helper V
Helper V

Hi @martinav 

Hope my wild guess of your doubts helps.

Sharing of what might be something the way you want.

 

sample html

 

"<b>" & report_title & "</b> <br>" &
"<b> Report Date: </b>" & Text(Today(), "[$-en-US]dd,mmm yyyy") & "<br>" &
"<b> Reported by: </b>" & "QA Dept." & "<p>" &
"<table border=1 width=100%><th colspan=4>" &
"<h4>Monthly Report (Criteria) for " & dd_month_2.Selected.Value & ", " & dd_year_3.Selected.Value & "</h4></th>" &
"<tr>
<th>"&"Criteria"&"</th>
<th>"&"Description"&"</th>
<th>"&"Total Checked"&"</th>
<th>"&"Passed (%)"&"</th>
</tr>"&

Concat(Gallery_month_report_5.AllItems,
"<tr>
<td>" & report_criteria &" </td>
<td>" & report_desc &" </td>
<td>" & report_total_check &" </td>
<td>" & report_pass_rate &" </td>
</tr>")

 

Have a nice day.

Hi @PK_Hong , @mdevaney ,

 

I was hoping to do something like this.  I know its too simple, but it is what I would like to happen.  To have a data collection from the table.:

 

Collect(DataCollection, htmltable.htmltext)

 

However, that does not work, to no surprise.  This is what my HTML table looks like:

 

<table style='font-family:Arial,Helvetica,sans-serif;border-collapse:collapse;width:100%;'>
<tr><th style='padding:4px;padding-top:6px;padding-bottom:6px;text-align:left;background-color:black;color:white;width:171px'>DRAWING #</th>
<th style='padding:4px;padding-top:6px;padding-bottom:6px;text-align:left;background-color:black;color:white;width:599px'>DESCRIPTION</th>
<th style='padding:4px;padding-top:6px;padding-bottom:6px;text-align:left;background-color:black;color:white;width:575px'>NOTES</th>
<th style='padding:4px;padding-top:6px;padding-bottom:6px;text-align:left;background-color:black;color:white;width:150px'>LAST UPDATED</th>
<th style='padding:4px;padding-top:6px;padding-bottom:6px;text-align:left;background-color:black;color:white;width:213px'>LAST UPDATED BY</th>
</tr>

<tr><td style='border:1px solid #ddd; padding: 4px;'>201013</td>
<td style='border:1px solid #ddd; padding: 4px;'>JS75S PRV  Dwg. 72784-2-1</td>
<td style='border:1px solid #ddd; padding: 4px;'> </td>
<td style='border:1px solid #ddd; padding: 4px;'>1/10/2017 2:54:30 PM</td>
<td style='border:1px solid #ddd; padding: 4px;'>smith@company.com</td>
</tr>

<tr><td style='border:1px solid #ddd; padding: 4px;'>201015</td>
<td style='border:1px solid #ddd; padding: 4px;'>JS75S316 General Arrg.</td>
<td style='border:1px solid #ddd; padding: 4px;'> </td>
<td style='border:1px solid #ddd; padding: 4px;'>1/10/2017 2:54:30 PM</td>
<td style='border:1px solid #ddd; padding: 4px;'>smith@company.com</td>
</tr>

<tr><td style='border:1px solid #ddd; padding: 4px;'>201017</td>
<td style='border:1px solid #ddd; padding: 4px;'>JS75S316 General Arrg. w/Flue</td>
<td style='border:1px solid #ddd; padding: 4px;'> </td>
<td style='border:1px solid #ddd; padding: 4px;'>1/10/2017 2:54:30 PM</td>
<td style='border:1px solid #ddd; padding: 4px;'>smith@company.com</td>
</tr>

 

Hi @martinav 

PowerApps supports basic HTML BUT not CSS.

In this case, you need to write using programming language, not powerapps.

 

PA is for people like me, a non-programmer.

 

Have a nice day.

Anybody got a solution for this. I'm trying to build a collection from a simple HTML table. As I'm having multiple data against a list item, I thought of storing the details as a HTML table. Is there any better approach to achieve this . I don't want to use a child list. 

@dreamweaver9962 ,

 

There is a way to do this in flow.  I'm working on the solution.  I'm really close.  Its a soluiton for getting data from Smartsheet.  It may not work for your situation.

Hello Martinav,

 

did you already find a solution. I struggle with the same issue 😞

@ConstantinSeide ,

 

With an html table in general?   Or Smartsheet?

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,217)