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 Display an Imag...
Power Apps
Answered

How to Display an Image from a Collection within a Display Form (form separate datasource)

(0) ShareShare
ReportReport
Posted on by 127

Hello!! I'm sure this is a super simple question, but I haven't quite yet figured it out. I am trying to display an image from a collection of mine! 

 

For my app, I have a form where I collect other information, as well as a pen input signature! The form was created from a SharePoint list of mine. I was able to successfully capture the image and place it into a SharePoint library. I am needing the image to be somehow linked or added to my SharePoint list because am needing these signature images to show up in a display form within my app. Unfortunately, I feel like I've tried so many things, and none of them have worked yet. So, I am now trying to see if I can add these signatures to a collection and then do a lookup function to display the single image in the display form. I have been able to create a unique identifier that is associated with my form, that is also the Name of the image in my collection. I'm thinking that I should be able to use the unique identifier and collection image name to do this, but can't figure it out. Is there a way that I can achieve this?

 

Or is there a better way to do this? 

 

Thank you all so much!

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Mrfunk ,

    Firstly you might have a read of my blog on SharePoint images - happy to answer any specific questions.

     

    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.

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

    @Mrfunk 

    If you're trying to display an image that you have in a document library (I mention this because you stated "library" in your post), then you only need to do a LookUp on the library with the associated criteria to lookup the record, then reference the Thumbnail property of the record to get your image.

    No collections needed!

    I hope this is helpful for you.

  • Powerplatform01 Profile Picture
    386 on at

    @Mrfunk 

    No need to worry, you can watch this video to resolve your issue.

    Also request you to please subscribe my video channel.Your one click helps me a lot.

    https://youtu.be/pXLFmX7cxUc

    Let me know if you need further help.

  • Mrfunk Profile Picture
    127 on at

    Hi @RandyHayes! Thank you so much for being willing to help me!! I would love to do a LookUp function to my document library, but unfortunately, I think that I need to somehow get a piece of the metadata from the form/list entry in my SharePoint List to be in my SharePoint library for this to work? I create a unique form ID and was able to name my image the unique form ID number, but I don't think I can do a lookup based off of that? I hope I'm making sense (and I'm so sorry, if I'm not)!

     

    I am building a PowerApp that has a form in it. The form is built out from a SharePoint list of mine, and that includes my pen input signature. Sadly, I think that I have to have the Pen Input signature go into a SharePoint Library (instead of the list). I am then having to use a gallery and display form to display all of the form information collected back within the app. So, I am needing to somehow connect the image that is in my SharePoint Library to my SharePoint list. So, I thought that I might be able to do a LookUp function to my signature collection instead, but I am finding that this won't work either.

  • Mrfunk Profile Picture
    127 on at

    Hi @Powerplatform01! Thank you for being willing to help me! I watched your video and it's great, but it does not show how to get the Pen Input image to add as an attachment to a SharePoint list? Did you create a Flow to do that? Or did you just manually add the attachments in SharePoint itself? Sadly, since these signatures are collected through a form on my PowerApp, I cannot manually add them to my SharePoint list.

  • Mrfunk Profile Picture
    127 on at

    Hi @WarrenBelz, thank you so much for your help! I was able to read your blog and got the Flow add as an Attachment to work!! The flow works great and when I test it in there, it works beautifully! Sadly, once I go to add the flow to run on my button in PowerApps, I get an error that states "Invalid Number of Arguments: received 1, expected 3." I have used the same code on other buttons using other flows (for example the one that I used to create the file to go into my SharePoint library initially), and the code works just fine! So, I'm suspecting that it might have something to do with the Flow itself. Do you know why I would be getting that error? When I add a different Flow, it works again? Thank you so much! Here is the code that I use in my PowerApps. I also tried the one that you have on your blog and got the same error as well. 

     

    Screen Shot 2021-08-02 at 1.35.31 PM.pngScreen Shot 2021-08-02 at 1.36.04 PM.png

    Screen Shot 2021-08-02 at 1.35.43 PM.png

    Thank you so very much again for your help!! I've been struggling with this for about a month now, and I feel like I am so close to having this issue resolved! I appreciate you.

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

    @Mrfunk ,

    I am glad you found my blog useful (and I do not even ask for subscriptions on unrelated content . . .).

    My blog is hopefully designed to allow you to understand the process and one of these is that you alone determine the number of parameters requested by Power Apps when running a Flow by the number of times you have used Ask in Power Apps in the Flow. Also when you are inputting the Flow code, you will see up the top the parameters being requested, what they are for and the one being currently input will be bold.

    In the code you posted, you are firstly giving the file name, then the file content. You then have an additional comma, which requires the third parameter after it. I suspect this may be the ID of the SharePoint list item the photo relates to, but that depends on what you have done n the Flow (there is however a third parameter as the Flow is asking for it).

    Does this help?

     

    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.

     

  • Mrfunk Profile Picture
    127 on at

    Hi @WarrenBelz, thank you again! Unfortunately, this stuff is sort of like another language to me, so sadly, I'm still a bit confused as to what I need to put into my code or take out of my Flow to make sure I have the parameters correct, but I'lll plan to look into that on my own. Thanks again for help with creating the flow to add the signature image as an attachment! I greatly appreciate it.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard