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 Apps / Launch URL from ShareP...
Power Apps
Answered

Launch URL from SharePoint Online PowerApp not working

(0) ShareShare
ReportReport
Posted on by 44

Hi,

 

My scenario is that I have a SharePoint PowerApps form that I am wanting users to fill out.  I have a link on the form to read a PDF and to email if they have any additional questions.  The email link is working as I have an html text field and am using the 'mailto:' option, but the  <a href= to get to the PDF does not work.  The icon changes to the hand when I hover over, but clicking does not go anywhere.  I then tried to put a button on the form and use the OnSelect to Launch(URL) but it just seems to reload the SharePoint page.  I have the full URL and have tried with a file in the same SharePoint site as well as one on an external web server with no luck.  I am also wanting the PDF to launch in a new tab or window if possible.

 

I was able to get a slight workaround by creating a second screen and then putting a PDF viewer control on that screen, but when I specify the Document value, I get a message on the screen when running the form that the PDF could not load and the option to Open in Browser.  That opens the PDF in a separate browser, but is not an ideal user experience with the warning message sitting in front of them off the first click.

 

 

 

Any ideas would be greatly appreciated,

Scott

PDF error.png
Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Would you please explain a bit for How you stored the PDF in SharePoint ?

    If it is stored as the List attachments, then you may consider take use of the Attachment control:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-attachments

     

    If the PDF is stored within a library, then make sure the URL is the Shared Link.

     

    Putting a Shared link within the Email HTML tag (Make sure you have the IsHtml syntax set to true) should make the PDF available to download or be previewed.

     

    Regards,

    Michael

  • stgiesbrecht Profile Picture
    44 on at

    I have the file in a document library.  I updated the link to the url that generated when I clicked the "Copy link" button from the ribbon and it appears to be working properly know.

     

    Thanks for the tips.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard