cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anthonys123
Helper III
Helper III

Code View hyperlink is being rewritten when using LINK TO ITEM to POST A MESSAGE in Teams.

I'm composing the hyperlink in code view as <a href="LINKTOITEM">Click here</a>.  

When I leave code view, the link rewrites itself as shown below. When I go back to code view, the hyperlink has changed to <a href="&lt;object custom=">@{body('Update_file_properties')?['{Link}']}"&gt;CLICK HERE</a><br>

 

I'm sure this used to work but I'm editing a flow and it's all of the sudden giving me problems. 

 

Screen Shot 2021-09-08 at 3.04.38 PM.png

Screen Shot 2021-09-08 at 3.04.51 PM.png

Screen Shot 2021-09-08 at 3.17.24 PM.png 

 

I was able to resolve the rewrite by using 

<a href="body('Update_file_properties')?['{Link}']">Click here</a> to open the file.<br>

instead of placing the dynamic value directly in the code.  Although, this link is not clickable when posted in Teams. 

1 ACCEPTED SOLUTION

Accepted Solutions
anthonys123
Helper III
Helper III

GOT IT!!  

concat('<a href="', body('Update_file_properties')?['{Link}'], '">CLICK HERE</a>')

I found a solution from this site

 

Screen Shot 2021-09-10 at 9.22.47 AM.png

View solution in original post

1 REPLY 1
anthonys123
Helper III
Helper III

GOT IT!!  

concat('<a href="', body('Update_file_properties')?['{Link}'], '">CLICK HERE</a>')

I found a solution from this site

 

Screen Shot 2021-09-10 at 9.22.47 AM.png

View solution in original post

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,820)