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

Create link to archive uploaded from MS Forms

Hi everyone.

 

I have a MS Forms that allows to users upload various files (0 to 10). In my PA flow I have a set that parse JSON from this field to collect name of the file(s), link etc.

 

One of my step is creat a HTML file on my Sharepoint that basically is a 'resume' of the MS Forms response. Now, I want to bring every link of these files that has been uploaded on MS Forms.

 

The problem is: if has a two or more files I can't list these links on my next step.

 

LeandroCampacci_0-1665065733345.png

LeandroCampacci_1-1665065838103.png

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yujincui-msft
Community Support
Community Support

Hi @LeandroCampacci ,

 

I have made a simple test for your reference.

concat('<a href="', item()?['link'], '">Link</a>')
replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&quot;','"')
<!DOCTYPE html>
<html>
<head>
<style>
table {
  border: 1px solid #1C6EA4;
  text-align: left;
  border-collapse: collapse;
  background-color: #00FFFF;
}
td, th {
  border: 1px solid #AAAAAA;
  padding: 3px 2px;
  width: 25%;
}
</style>
</head>
<body>
<p>   </p>
@{replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&quot;','"')}
</body>
</html>

vyujincuimsft_0-1665115656034.png

vyujincuimsft_1-1665115665157.png

vyujincuimsft_2-1665115685852.png

Result Screenshots:

vyujincuimsft_3-1665115710860.png

vyujincuimsft_4-1665115734090.png

In addition, here is a link for your reference.

https://tomriha.com/how-to-add-hyperlink-in-the-create-html-table-power-automate-action/

 

 

Best Regards,

Charlie Choi

View solution in original post

2 REPLIES 2
v-yujincui-msft
Community Support
Community Support

Hi @LeandroCampacci ,

 

I have made a simple test for your reference.

concat('<a href="', item()?['link'], '">Link</a>')
replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&quot;','"')
<!DOCTYPE html>
<html>
<head>
<style>
table {
  border: 1px solid #1C6EA4;
  text-align: left;
  border-collapse: collapse;
  background-color: #00FFFF;
}
td, th {
  border: 1px solid #AAAAAA;
  padding: 3px 2px;
  width: 25%;
}
</style>
</head>
<body>
<p>   </p>
@{replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&quot;','"')}
</body>
</html>

vyujincuimsft_0-1665115656034.png

vyujincuimsft_1-1665115665157.png

vyujincuimsft_2-1665115685852.png

Result Screenshots:

vyujincuimsft_3-1665115710860.png

vyujincuimsft_4-1665115734090.png

In addition, here is a link for your reference.

https://tomriha.com/how-to-add-hyperlink-in-the-create-html-table-power-automate-action/

 

 

Best Regards,

Charlie Choi

LeandroCampacci
Frequent Visitor

Thanks! That's works perfectly.

I will test in other scenarios, but this already helps me a lot. Thank you again!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (6,120)