web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Safelink returns outpu...
Power Automate
Unanswered

Safelink returns output another safelink

(0) ShareShare
ReportReport
Posted on by 2

Hello everyone,
As a context, i made a flow that automatically download files that are in an hyperlink inside in the the content of e-mail.

As a description of the flow ... it is like this : 

When an email arrives -> Variable get the body of the email -> Variable get the hyperlink Safelink -> HTTP GET API that tries to get me the file but it redirects , since it's a safelink, and says that "Object moved to... "-> Condition "in case of a redirect" that contains 2 more variables that splitted me link to get only the right link, that i want, not a safelink -> HTTP GET API again to get me and identify the file -> Create file to sharepoint -> Get file properties -> Extract me the .zip.
But , at the first HTTP GET API action , that tries to get me the URL , that is "emea01.safelinks.protection.outlook.com blablalba", when it tries, it outputs me another safelink , that is "eur01.safelinks.protection.outlook.com blablabla". So , basically , i'll need a condition or smth like that , when it tried to get the url and if it is again a safelink, split it again for me , kinda like that.
At first, i tried this flow on my own Inbox, with manually forwards from my subfolders that contains those files that arrives daily. With those forwards , it redirects me first to the First safelink and then to the correct URL ,but if i move the flow to another subfolder , it redirects me to "emea01" and then "eur01" as an output , and THEN the correct URL , i think you get it.
I insert here the example of the flow :

Flow OK flow NOT OK.png

flow.png

Appreciate your help !
Regards,
Alex.

Categories:
I have the same question (0)
  • Alexciobanuuuuu Profile Picture
    2 on at

    Up someone 😄 ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard