To update user image in CDS, I have taken the below controls in power apps
- Image control named as “ Image1”
- Picture control named as “AddMediaWithImage1”
- 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 🙂