cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Brausmith
Level: Powered On

Approval action - Spaces in the attachment path breaks the link

I almost have a working Approval in my flow with the exception of my List Attachment link breaking.

Through using a Get Attachments action, and then the AbsoluteUri content in the details of the approval it is adding the file link. But if I have spaces in the file name this is where it is breaking the link. See below image.

 

If I have the AbsoluteUri in the Item Link field instead it then works fine. But I need it in the approval Details.

 

Does this look like a bug, or is there some extra formatting around the AbsoluteUri I can do to correct this? You can see in the image that I have already tried using it within a markdown link without success.

 

2018-08-03 16_31_44-Mail - Chad.Smith@a2ktechnologies.com.au.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Approval action - Spaces in the attachment path breaks the link

Hi @Brausmith,

 

I assume that it might be a default behavior that Microsoft Flow would add the %20 to replace the space in file name. Per my test, when using the dynamic content AbosoluteURi in the Link field of the action Start an approval, the link can be correctly generated.

 

If you want to add the attachment link in the Details, please try the following code:

join(split(items('Apply_to_each')?['AbsoluteURi'],' '),'%20')

 

Screenshots for your reference:

1.PNG2.PNG

 

More details about the function, please check it at here:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#j...

 

 

Best regards,

Mabel Mao

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

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Approval action - Spaces in the attachment path breaks the link

Hi @Brausmith,

 

I assume that it might be a default behavior that Microsoft Flow would add the %20 to replace the space in file name. Per my test, when using the dynamic content AbosoluteURi in the Link field of the action Start an approval, the link can be correctly generated.

 

If you want to add the attachment link in the Details, please try the following code:

join(split(items('Apply_to_each')?['AbsoluteURi'],' '),'%20')

 

Screenshots for your reference:

1.PNG2.PNG

 

More details about the function, please check it at here:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#j...

 

 

Best regards,

Mabel Mao

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

View solution in original post

edgar3tres
Level: Powered On

Re: Approval action - Spaces in the attachment path breaks the link

I'm using the same code for my attachments and is working pretty good, the only issue I have is that the links are too long, is there a way to make it shorter, maybe just show the name of the actual file and still work as l ink?

 

 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,453)