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 / 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,741 Super User 2025 Season 2 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,605 Super User 2025 Season 2 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,741 Super User 2025 Season 2 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,605 Super User 2025 Season 2 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,605 Super User 2025 Season 2 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,605 Super User 2025 Season 2 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

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard