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 / image control not upda...
Power Apps
Unanswered

image control not updating frequently with a share point link

(0) ShareShare
ReportReport
Posted on by 8

Hi

 

I  want to display user profile photo in my app. I saved my photo in SharePoint. And added the share point link in my imageControl.image. And user can updated the image also.. But after updating the image, the image control is not replacing the old image with new image. After refreshing the page, image is displaying correctly. I want to display the image at the time of updation.

I am using flow for saving image

Attaching my code

 

image1.PNG

 

code in image control. image

 

If(!wait,
uplodedImage
)

 

My upload button

Set(
wait,
true
);
Set(
uplodedImage,
"https://*******/test/" &UserId & "/" & UserName & "_" & UserId
);
Set(
wait,
false
);

 

How can I refresh my imagecontrol ?

How can I solve this

 

Categories:
  • Ewtm Profile Picture
    16 on at

    Hi,

     

    Maybe you can refresh the datasource to update the image in PowerApps? 

    Refresh(datasource)

     

    If the image updates are frequent you can also add the refresh function to a Timer.

  • monikaprakash_1 Profile Picture
    8 on at

    I checked with refresh and timer also.. but both are not working.

     

    I am saving my image in SharePoint.. The SharePoint image link is always same but image control is not updating with the latest image.. it always showing the old image. after refresh the application it showing the latest image.

  • Ewtm Profile Picture
    16 on at

    I don't think it is possible to refresh the browser window (application) from within powerapps.

    Have you tried saving the newly uploaded photo with a new name (and so changing the url)? So that powerapps is not able to use the photo in the buffer. I think when the name of the image changes, powerapps will always reload the image.

  • monikaprakash_1 Profile Picture
    8 on at

    No its not updating in image. I created new link but not updating

  • MsPowerUser Profile Picture
    2 on at

    Hi 

    I was facing the same issue. I find a working solution, and it's easy to adopt.  
    Where you would like to display the image within the app and use the variable/link/ etc then concatenate the link with  &"?refresh="&RandBetween(1;1000000) 

    Example:
    ThisItem.Link&"?refresh="&RandBetween(1;1000000)

    I hope I can help. 🙂 

  • akl1 Profile Picture
    74 on at

    Can you explain this for a beginner? I have an Image Control set to varPN.Image1.Small where varPN is an item selected in an earlier gallery. I want to update the image after a patch, but don't know how to work with the URL like you suggest.

  • akl1 Profile Picture
    74 on at

    I came up with a workaround that may not work for all use cases, but I thought I'd share for what it's worth:

    Context: In our app, the user selects a Sharepoint list item (varPN) from a gallery on (we'll call it) Screen A. Each item in the list has 10 image columns. On Screen B, they see item detail & a button to navigate to Screen C where they can upload images. Screen C consists mainly of a text input control for image description entry and ten separate add picture controls, each patching to a different column of the list. I have hidden the uploaded image part of the control & replaced with an image control set to varPN.Image1.Small, varPN.Image2.Small, etc. because I want users to be clear whether or not the image uploaded on this screen (rather than seeing an image that is selected but might not make it to the Sharepoint). And so I was hitting the wall with getting the Image controls to update after an upload.

     

    uploadimage.png

    My workaround:
    The OnSelect for each Add Media button will send the image & description to the SharePoint list via Patch, sets global variable varRefresh to true & navigates back to Screen A.

    On Screen A, the visibility of the gallery, buttons, etc. is set to false when varRefresh is true, while a loading page with 2 second timer has visibility (and for the timer, autostart) set to true when varRefresh is true. (This idea came from watching Ryan Logan's video here.)

     

    When the timer ends, varPN is set to Gallery1.Selected and the user is navigated back through the original path of Screen A gallery>Screen B item detail (also set to invisible with 2 sec loading page set to visible)>Screen C uploading page, and the image control is updated.

    Whew! But it works!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard