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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extracting a variable ...
Power Automate
Answered

Extracting a variable link to download a pdf file

(0) ShareShare
ReportReport
Posted on by 34

I have gotten to the point to where i can get the hyperlink. What is needed from this link is after "url=" My problem is that the link changes. What i need is this "https://prodhcssuploads.blob.core.windows.net/7059c51c-621f-4961-be85-d7ebc1f1f3dc/e8e10ce5-073a-49fa-954f-032846f1c0dd-1707835697-3500a3.pdf" after https://prodhcssuploads.blob.core.windows.net and .pdf is constant. anything in between changes for each pdf file received. Copying this link to the browser automatically downloads the pdf file. Any one that can help me with this i would like to thank you ahead. Below is the full like i get on each email. I am attaching a copy of an email and up to where i am at.

 

Categories:
I have the same question (0)
  • Verified answer
    SamLed Profile Picture
    2,338 Moderator on at

    Hi @oguerra1,

     

    Give a try to this:

     

    SamLed_0-1707867829283.png

    Expression: replace(last(split(last(outputs('SplitintoLines')), 'url=')), ']','')

     

    Explanation:

    • last(outputs('SplitintoLines'), takes last line from SplitIntoLines compose outputs
    • surrounding split(), splits line by 'url=' which returns an array containing both URL starting with https
    • surrounding last(), take the URL we want to extract
    • surrounding replace(), removes last ']' char

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • oguerra1 Profile Picture
    34 on at

    Thanks  that worked

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard