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 / How to link to a Share...
Power Apps
Answered

How to link to a SharePoint item by ID in PowerApps

(0) ShareShare
ReportReport
Posted on by 56

I am customizing a SharePoint list in PowerApps. On one screen I have, it displays all items with a filter applied. (Basically it shows all items with the same serial number from the previous screen.) I can make these hyperlinks, but "OnSelect", I want it to take them to that item. If I do Navigate to another screen, how would I have it populate with the data from the item they clicked on?

I also want them to be able to see or click on any attachments that list item contains. Any ideas?

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey! To see the item, on select navigate to another screen with a form and in the form Item property write: 

    Gallery1.Selected

    That will show the item.

     

    I don´t think it is possible to show the attachments but I know that you can download it. But I think you cant preview it

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

  • Hclor Profile Picture
    56 on at

    This halfway worked, it seems to show the item data, but it does not show the attachment. (I used DataTable1.Selected) It says "There is nothing attached." in the attachment field, which is not true... the item does has an attachment. Do you know how to get it show the attachment or a link to the attachment?

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Hclor 

    Change your Item property formula to:

       LookUp(yourDataSource, ID=DataTable1.Selected.ID)

    That should give you what you need.

     

    I hope this is helpful for you.

  • Hclor Profile Picture
    56 on at

    @RandyHayes This is giving me the same results as @Nogueira1306 's solution. See screenshot. (I added a comment in the SharePoint item that has an attachment to make sure it was showing the correct item, still no attachment)Screenshot 2021-08-27 114652.jpg

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey! Watch this video:

     

    https://www.youtube.com/watch?v=eZtOVvbj9qw 

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Hclor 

    Have you made any alterations to the form?

    What is the Default property of your DataCard for the attachments?  What is the Items property of the attachment control inside of the DataCard?

  • Hclor Profile Picture
    56 on at

    @RandyHayes Ahh, that may be it. I was working on this with another user and it looks like the properties have been altered. Attachments Datacard value Items properties= AttachmentsMain and Attachements datacard default= ThisItem.'{Attachments}'
    Would it be easiest to delete the form and re-insert it? 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Hclor 

    You can remove the attachment datacard from the Field edit of the form and then add it back in.  That would be easiest.

     

  • Hclor Profile Picture
    56 on at

    Yes! That worked. So simple, wow. Thank you, @RandyHayes !!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Hclor 

    No trouble at all...Keep It Super Simple!!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard