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 / Showing the image uplo...
Power Apps
Answered

Showing the image uploaded in SP attachment

(0) ShareShare
ReportReport
Posted on by 48

Hi!

 

I'm trying to show up the second uploaded attachment like a image in powerapps but with no results.

 

The first attachment is how my app is. The second is the attachment that i would like to show up in the Powerapp image.

 

My Image looks like:

First(Filter(ThisItem.Attachments)

 

imagem_2024-04-27_001527864.png
imagem_2024-04-27_001625370.png
Categories:
  • WarrenBelz Profile Picture
    156,714 Most Valuable Professional on at

    Hi @powerapps2024 ,

    The first attachment is

    First(ThisItem.Attachments).Value

    and the second

    Index(ThisItem.Attachments,2).Value

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • powerapps2024 Profile Picture
    48 on at

    Hi @WarrenBelz,

     

    Thanks for your reply! If my SharePoint list has 15 rows, and I want the photo of row 15 to appear (attachment 2) ?

  • WarrenBelz Profile Picture
    156,714 Most Valuable Professional on at

    Hi @powerapps2024 ,

    Sorry I do not understand your requirement.

  • powerapps2024 Profile Picture
    48 on at

    @WarrenBelz ,

     

    Using this in a image:

     

    First(ThisItem.Attachments).Value

     

     Show me the the image of the first item in my list.

     

    But i have 15 itens in my list and how to show up the attachment of the the number 15 of the SharePoint List ? Maybe a filter by the column "name of the item".... I'm trying but with no sucess

  • Gochix Profile Picture
    1,937 Moderator on at

    @powerapps2024 ,

    Trying to understand what exactly you need;
    1) You want to display image from attachment of row 15 in your SharePoint list? If yes, then where?
    2) You want to add the 2nd attachment to be the attachment from the row 15 of the SharePoint list?

     

     

     


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

     

  • powerapps2024 Profile Picture
    48 on at

    @Gochix ,

     

    The first option. Should be in a image in Powerapps like the second attachment is showing

  • Gochix Profile Picture
    1,937 Moderator on at

    @powerapps2024 ,

    In that case you can try:

     

    First(LookUp('YourSharePointListName', ID = 15).Attachments).Value

     

    This of course would only work for you if you always want to display the Image with ID = 15 from your list.
    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • powerapps2024 Profile Picture
    48 on at

    @Gochix ,

     

    I can filter by the name of each row instead of ID's ?

  • Verified answer
    Gochix Profile Picture
    1,937 Moderator on at

    @powerapps2024 ,

     

    You can, but then the name must be unique, or linked. Meaning, that you must somehow identify which row you wish to display. If your name contains name and surname then go ahead with that.

     

    First(LookUp('YourSharePointListName', Name = varName).Attachments).Value

     

    I would set the variable varName to the actual name which you wish to display the image.

    Then you can control the variable and change it if you need without changing the code.
    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • WarrenBelz Profile Picture
    156,714 Most Valuable Professional on at

    @powerapps2024 ,

    It should be

    First(First(SPListName).Attachments).Value

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard