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 / Open SharePoint List a...
Power Apps
Unanswered

Open SharePoint List attachment URL in New Window from Gallery icon

(0) ShareShare
ReportReport
Posted on by 10

I have a Power App where users can upload a file in the app that gets stored into a SharePoint list attachment (built in Power Automate flow). What I am trying to do is allow users to click an icon within a Power Apps gallery that will open the attachment file in SharePoint itself in a new window browser.

 

The issue that I'm having is: when you click on the icon within the gallery, it downloads a local copy of the file to the user's desktop instead of opening the file on the cloud. Can anyone advise on how to modify the current approach so that it opens the file in a new window within the SharePoint site? I should also mention that I tried to modify my SharePoint column settings and do not have the ability to adjust some of these settings.

 

Data Sources in Power App:

  • Power BI data (using Power App visual embedded in report)
  • SharePoint List data (where the file upload is being saved along with additional relevant columns such as UniqueID)

In my Gallery, I have a hidden Text label (renamed as "HiddenAttachmentUrlLabel") to retrieve the attachment URL:

 

 

LookUp('My SharePoint List', Title = ThisItem.'UniqueID', 'Attachment URL')

 

 

 In the same Gallery, I have an icon with an On Select property of:

 

 

Launch(HiddenAttachmentUrlLabel.Text)

 

 



This is the Power Automate flow that I created for additional context. In the last step, I am responding to Power Apps to indicate if the run was successful or not. 

klinha_0-1701718080659.png

 

I have seen some mention online about sending an additional parameter including the attachment URL that was just created in the "Respond to a PowerApp" module, but I am lost on how I would be able to insert this into the icon in the selected item of my gallery. It seems that there are two approaches here and I would like some advice on which one I should take and how to do so.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @klinha ,

    If your Gallery Items are

    LookUp(
     'My SharePoint List', 
     Title = ThisItem.'UniqueID'
    ).Attachments

    then an icon with

    Launch(ThisItem.AbsoluteUri)

    should open the file in a new browser window

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • klinha Profile Picture
    10 on at

    My gallery Items reference PowerBI, not the SharePoint list. 

    klinha_0-1701724492157.png

    What would I do in this case?

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    @klinha 

    Sorry, I cannot assist further - I do not use PowerBI Integration.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard