Skip to content

How to update current logged in user’s image in CDS(Dataverse)

To update user image in CDS, I have taken the below controls in power apps

  1. Image control named as “ Image1”
  2. Picture control named as “AddMediaWithImage1”
  3. Button named as “Button1”

On Image property of Image control, I have added “UploadedImage1.Image” , so that, when the image is uploaded in using “AddMediaWithImage1”, the uploaded image will be displayed in the image control

I have written the below code on button, where Entity Image is the name of the Image in user entity.

Patch(Users,LookUp(Users,’Primary Email’=User().Email),{‘Entity Image’:Image1.Image})

If you liked the post, please share it with others 🙂

Published inPower Apps Canvas