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 / 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.

 

Screenshot 2024-02-13 154515.png
Screenshot 2024-02-13 155522.png
Categories:
  • Verified answer
    SamLed Profile Picture
    2,340 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard