web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    Re: Safelink returns output another safelink

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard