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 / Can not update the ima...
Power Apps
Answered

Can not update the image from add picture control correctly

(0) ShareShare
ReportReport
Posted on by

Hi everyone, I am trying to bind the add picture control with the attachment control for files, but the thing is that when I try to add a picture through the add picture control, the image showed is the sample image, not the current one added.

 

MicrosoftTeams-image (7).png

 

This is my Image control code on "Image":

If(
    IsEmpty(colImage),
    SampleImage,
    Last(colImage).AbsoluteUri
)

 

This is my code on the Add picture control in "OnChange":

Set(
    varImage,
    GUID()
);
Collect(
    colImage,
    {
        Nombre: varImage & ".jpg",
        Id: varImage & ".jpg",
        AbsoluteUri: 'Foto Empleado'.Image
    }
)

 

"Foto Empleado" is my Image Control's name

 

I have also an attachment card where I am showing the collection by just adding 'colImage' in "Items".

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @findingNemo ,

     

    I can reproduce this if I reference an standalone Image control. Please make sure you have correct Image control name referenced in the Collect function:

    vjefferni_0-1663148686850.png

    Set(
     varImage,
     GUID()
    );
    Collect(
     colImage,
     {
     Nombre: varImage & ".jpg",
     Id: varImage & ".jpg",
     AbsoluteUri: UploadedImage1.Image
     }
    )

     

    The reason is, the Collect function is appended OnChange property, when clicking the add picture button, the UploadedImage control has sample image as the content, then you will always collect the sample image into the collection.

     

    Best regards,

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard