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 attachment from g...
Power Apps
Answered

Open attachment from gallery

(0) ShareShare
ReportReport
Posted on by

Hi 

I need help, I have gallery from sharepoint list. 

In that sharepoint list I have attachment and I would like to open that attachment using the button from gallery. 

It would be best if I could open it in a new browser window

It ´s possible ? 

I tried something like this but it doesn't help

Of course, I can open it from the form, but this would make it easier for me to use the application.

AndrejPavlik18_1-1716452881065.png

 

 

thanks a lot 

Andrej 

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @AndrejPavlik18 

     

    Try This Onselect=

    Launch(First(ThisItem.Attachments).AbsoluteUri)

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @AndrejPavlik18 

     

    do you have a colum with the url of the attachment?

    if yes this should work:

     

    Launch(ThisItem.AttachmentURL)
    

     

    or

    Launch(ThisItem.AbsoluteUri)
    

    you would rename to the name of the column that holds the url

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • AndrejPavlik18 Profile Picture
    on at

    Thanks for your  answer 

    this code is working 

    Launch(First(ThisItem.Attachments).AbsoluteUri)

     

    But, that code starting download the attachment and I would like to open in new browser window.

     

    thanks 

     

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    @AndrejPavlik18 Try this

     

    Launch(First(ThisItem.Attachments).AbsoluteUri, {}, LaunchTarget.New)

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    Launch(ThisItem.'Link to item'),LaunchTarget.New);

     

    @AndrejPavlik18  this should work

  • AndrejPavlik18 Profile Picture
    on at
    Launch(First(ThisItem.Attachments).AbsoluteUri, {}, LaunchTarget.New)

    This Code still working like that before, still downloading the document.

     

    BR 
    Andrej 

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    can u please check the other provided? this works in different apps for me

  • AndrejPavlik18 Profile Picture
    on at

    I don´t know where can be a problem.

    Here is my code, and still downloading. 

    AndrejPavlik18_0-1716454917654.png

     

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    try this suggestion from above:

    Launch(ThisItem.'Link to item'),LaunchTarget.New);

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • AndrejPavlik18 Profile Picture
    on at

    He doesn't want to take this code from me

    AndrejPavlik18_0-1716455248815.png

     

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
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard