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 : hbbRzfSYz5pAfI58VsHZtw
Power Automate - Building Flows
Unanswered

How to automatically download URL file from the Email link (downloadable/clickable content)

Like (0) ShareShare
ReportReport
Posted on 13 Nov 2023 22:48:16 by 56

I have been struggling already for some weeks and I can't get it to work in Power Automate.
The issue is the following:
1) I am receiving in my Email (Monday morning) a bunch of system-generated emails that contain downloadable links:

That clickable link is in this form:
https://deu01.test.outlook.com/?url=https%3A%2F%2Fcdn1.test.co/XYZ/&%$!%&/§§abbvcccc  => (it is a long URL anyways)

se1.png

The number of those Emails is like 10 with different names of course but the content inside them (after clicking on the link) is always .csv and always has the same structure.

2) What I wanted to accomplish is to automate that process, to get the content of those links and save them somewhere on SharePoint let's say under the same  I am unfortunately stuck on developing the proper actions/triggers in Power Automate to get this work.

3) We have Premium connectors!

This is my "work" up till now:

s1.png

these are separate actions:

a)
s2.png
b)
s3.png
c)
s4.png

d) Usually I am getting an error here:
The provided 'Http' action URI '*sanitized*' is not valid. The URI must be a well formed absolute URI not referencing local host or UNC path.

s5.png
e)
s6.png

f)
s7.png

I used this for the variable:

 

 

 

substring( substring(outputs('html'), indexOf(outputs('html'), 'https://deu01.test.outlook.com')), 0, indexOf(substring(outputs('html'), indexOf(outputs('html'), 'https://deu01.test.outlook.com')), '"'))

 

 

 


 Unfortunately, I am not familiar with this kind of flow, especially with HTTPS and so on. I saw something on Google but I don't get it properly... 

Any kind of help would be appreciated!!

I have the same question (0)
  • AlexEncodian Profile Picture
    4,409 Moderator on 14 Nov 2023 at 14:30:52
    Re: How to automatically download URL file from the Email link (downloadable/clickable content)

    I think you can download files from links (as long as the link is public and the output of the link is a file rather than a website from which you need to then fetch the file)

    (1) Solved: Automatically download a file that is in an url li... - Power Platform Community (microsoft.com)

  • AlexEncodian Profile Picture
    4,409 Moderator on 14 Nov 2023 at 14:20:21
    Re: How to automatically download URL file from the Email link (downloadable/clickable content)

    @M1rzA_V 

    Can you check the output of the linkURL action in your flow run history to make sure you are passing through the correct URL?

    Also, why are you doing an apply to each on the email attachments? You want to create the file output from the HTTP action, not the email attachment?

  • Unknown geen idee Profile Picture
    1,755 on 14 Nov 2023 at 14:16:57
    Re: How to automatically download URL file from the Email link (downloadable/clickable content)

    Dear M,

     

    By my limited experience, unless you have back-end HTTP/API access to the source/link you are trying to access, I do not think you can accomplish this via PowerAutomate (cloud).

    What you are trying to do is to mimic human actions ... 'click link', 'go to new browser', 'click download' or something like that. 

     

    What you can use however is PowerAutomate desktop (or any other similar RPA). With this you can mimic human behaviour and execute what you want. You can call PowerAutomate Desktop (PAD) flows from PowerAutomate cloud, but it will have to run locally and it uses some different actions/settings stuff.

     

    Hope this helps you further,

    Koen

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started
Loading complete