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

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

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard