Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

Categories:
  • stgiesbrecht Profile Picture
    44 on at
    Re: Launch URL from SharePoint Online PowerApp not working

    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.

  • Verified answer
    v-micsh-msft Profile Picture
    on at
    Re: Launch URL from SharePoint Online PowerApp not working

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard