cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GMackay
New Member

Item Link in approval email includes HTML/CSS in the URL

Hello,

 

I have an approval workflow configured that includes dynamic content pulled from a SharePoint List in the Item Link field.:

GMackay_0-1630009261184.jpeg

 

The field that is being dynamically pulled from SharePoint contains a hyperlink (just used an example link to Power Automate site):

 

GMackay_1-1630009288019.jpeg

 

 

When the approval email is sent, the URL for the Link includes the HTML/CSS formatting and therefore the link does not work:

 

GMackay_3-1630009346935.png

 

How do I solve for this while still keeping the hyperlink in the SharePoint List?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @GMackay ,

 

You need to use some formulas to extract the link from the string.

For example:

vxiaochenmsft_0-1630287878166.png

vxiaochenmsft_1-1630287905513.png

Compose1:

indexOf(outputs('Html_to_text')?['body'],'[https')
 
Compose2:
substring(outputs('Html_to_text')?['body'],add(outputs('Compose'),1))
 
Compose3:
substring(outputs('Compose_2'),0,indexOf(outputs('Compose_2'),']'))
 
vxiaochenmsft_2-1630287959174.png

 

vxiaochenmsft_3-1630287982285.png

 

Best Regards,

Wearsky

 

 

 

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @GMackay ,

 

You could use 'html to Text' action.

vxiaochenmsft_0-1630030987839.png

vxiaochenmsft_1-1630030996060.png

vxiaochenmsft_2-1630031011151.png

 

Best Regards,

Wearsky

 

 

 

GMackay
New Member

Hi @v-xiaochen-msft,

 

Thanks for the suggestion. How would I use that as an input to the Item Link field? I tried setting a variable to be an output of the conversion, but the link didn't work correctly:

GMackay_0-1630072501515.jpeg

 

GMackay_1-1630072526551.jpeg

 

GMackay_2-1630072541778.jpeg

 

Thanks.

v-xiaochen-msft
Community Support
Community Support

Hi @GMackay ,

 

You need to use some formulas to extract the link from the string.

For example:

vxiaochenmsft_0-1630287878166.png

vxiaochenmsft_1-1630287905513.png

Compose1:

indexOf(outputs('Html_to_text')?['body'],'[https')
 
Compose2:
substring(outputs('Html_to_text')?['body'],add(outputs('Compose'),1))
 
Compose3:
substring(outputs('Compose_2'),0,indexOf(outputs('Compose_2'),']'))
 
vxiaochenmsft_2-1630287959174.png

 

vxiaochenmsft_3-1630287982285.png

 

Best Regards,

Wearsky

 

 

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,449)