Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • AndrejPavlik18 Profile Picture
    on at
    Re: Open attachment from gallery

    If I use your code, SharePoint opens and not the attachment

    AndrejPavlik18_0-1716458153584.png

     

  • Verified answer
    mmbr1606 Profile Picture
    12,104 Super User 2025 Season 1 on at
    Re: Open attachment from gallery

    just copy paste the suggestion i gave to you and try it.

    here is a screenshot of the code you need

    2024-05-23_11h37_13.png

    you do not need anything other than link just tried to explain to have a look at what intelisense is offering you. maybe 'Link to Item' has a different name if it is showing it in slovak language to you

     

    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
    Re: Open attachment from gallery

    I still don´t understand what does mean ThisItem.link ? what I need to put instead of link ?

  • mmbr1606 Profile Picture
    12,104 Super User 2025 Season 1 on at
    Re: Open attachment from gallery

    the link will be taken from the attachment directly if you pick ThisItem. Link to Item it will automatically take the right link to open. You do not need to define anything

  • AndrejPavlik18 Profile Picture
    on at
    Re: Open attachment from gallery

    And how to define the link for the code? 

  • mmbr1606 Profile Picture
    12,104 Super User 2025 Season 1 on at
    Re: Open attachment from gallery

    ok thanks for the explanation.

     

    You dont need this column you need the Link to item thing so when you write ThisItem. you would need to look for that. maybe the name is different in slovak language.

     

    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
    Re: Open attachment from gallery

    That is column name in sharepoint. 

    That is attachment in Slovak language 

    AndrejPavlik18_0-1716455516508.png

     

  • mmbr1606 Profile Picture
    12,104 Super User 2025 Season 1 on at
    Re: Open attachment from gallery

    hey @AndrejPavlik18 

     

    what doed the red underlined word mean "Prilohy"? Can u change it to Link to Item or whatever this is in the language you are using.

     

    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
    Re: Open attachment from gallery

    He doesn't want to take this code from me

    AndrejPavlik18_0-1716455248815.png

     

  • mmbr1606 Profile Picture
    12,104 Super User 2025 Season 1 on at
    Re: Open attachment from gallery

    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

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,596 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard