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

Microsoft Flow Send Email action does not URL encode hyperlinks to SharePoint list items.

Microsoft Flow Send Email action does not URL encode hyperlinks to SharePoint list items when lits items are referenced by in the email body.  This causes hyperlink to be broken in email bodies if spaces are part of SharePoint list url. 

 

SharePoint List Item is referenced in an email step as  "Link to Item" dynamic content:

 

Microsoft Flow 1.png

 

The hyperlink in an email looks like:

 

https://testing.sharepoint.com/Test List

 

5 REPLIES 5
Highlighted
Community Support
Community Support

Re: Microsoft Flow Send Email action does not URL encode hyperlinks to SharePoint list items.

Hi @rf,

 

I will try to report this issue to the pg and should there is any update later, I will get back and notice you here. Thanks for your feedback.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Community Support
Community Support

Re: Microsoft Flow Send Email action does not URL encode hyperlinks to SharePoint list items.

Hi @rf,

 

I just tried with a list named "List Test" and filled the email body with Link to item. What I receive in the email body is like this:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmsdnmona.sharepoint.com%2Fsites%2FT...

 

After I click on this URL, I can successfully access this item actually. So the hyperlink is not broken. 

 

Did you link broken and cannot access the item?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

Re: Microsoft Flow Send Email action does not URL encode hyperlinks to SharePoint list items.

Hi Mona,

 

Thank you for looking into this issue. 

 

In my case, the SharePoint site URL contains blanks and that what seem to be causing problems.  The URL to my SharePoint site looks similar to https://msdnmona.sharepoint.com/sites/Team Site.  Any references to list items in https://msdnmona.sharepoint.com/sites/Team Site site are not formatted correctly in the emails that are sent by Flow.  They look like https://msdnmona.sharepoint.com/sites/Team, chopped at where the blank is in the site's URL.  Luckily I found a workaround to enclose "Link to Item" in double quotes.   But it will be nice if Link To Item worked without quotes.

 

Thank you for your help,

Rita Feldman

Highlighted
Frequent Visitor

Re: Microsoft Flow Send Email action does not URL encode hyperlinks to SharePoint list items.

Is there a fix to this yet?

Highlighted
Frequent Visitor

Re: Microsoft Flow Send Email action does not URL encode hyperlinks to SharePoint list items.

I'm still encountering this issue. None of the special characters in links are percent encoded, which means when we add them to an HTML snippet through Link to Item, the users receive 404 errors.

 

A work arround for now is to manually build the first part of the link to the library, and then URI encode the document name and concat it on.

 
Concat('https://contoso.sharepoint.com/LibrayName/', encodeUriComponent(body('Get_file_properties')?['{FilenameWithExtension}']))

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (3,618)