Skip to main content

Notifications

Power Apps - Power Apps Pro Dev & ISV
Suggested answer

browsegallery.selected.attachment

Posted on by 347
I have browsegallery that has an attachment.  when they select an item and it goes to edit form.  I want the attachment on that edit form  so they can open it.
The picture of the excel shows in the edit form but when clicked says  not found.
 
Is there no way to pull in an attachment onto the edit form from the browsegallery selection?
  • Suggested answer
    Mark Nanneman Profile Picture
    Mark Nanneman 329 on at
    browsegallery.selected.attachment
    Is your gallery displaying a SharePoint list with attachments?  You should be able to open excel files via clicking on the file displayed in the attachments card on an edit form in Power Apps (I just tested and I can without issue).

    Alternatively (assuming you're using a SharePoint List with attachments as your data source) you can use the "AbsoluteUri" property of the attachment to get a direct link to the file.

    E.g. add a button with something like this OnSelect formula
     
    Launch(First(Gallery1.Selected.Attachments).AbsoluteUri)



    Also, can you try attaching other file types or other excel files and testing whether those work?



    If this helped you, please click "Does this answer your question" and give it a like to help others in the community (+ close the ticket)!

    Power Platform Developer | LinkedIn: Mark Nanneman | Blog: Power Stuff  | YouTube: Mark's Power Stuff  | Buy me a coffee

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard