Hello,
I'm getting some difficulties trying to do a dynamic function in my PowerApp that enables our employees to update their Office 365 account photo through this Onboarding solution.
It worked before I didn't change my function but it shows me this error:
"The function 'Concurrent' has some invalid arguments.
I have and print attache to this post that show the error.
I have in this screen 3 buttons:
1- 'Carregar' that means 'Upload? and its an upload media button to give user the liberty to choose their own photo.
2- 'Cancelar' that menas 'Cancel' that is an button that aloows you to cancel the photo that you have choosen to this I used this function:
If(Office365Users.UserPhotoMetadata(Office365Users.MyProfile().Id).HasPhoto = true,Office365Users.UserPhoto(Office365Users.MyProfile().Id),people)
3 - 'Gravar' that means 'Save' button to give the user the abbility to solve the photo that is have choosen to is Office 365 account but ITS DOESNT WORK NOW. My function looks like this:
//send photo to office365 profile, complete photo task in outlook tasks, patch the local copy with completed task, update local copy of user profile to reflect new photo
Concurrent(Office365Users.UpdateMyPhoto("image/jpeg", UploadedImage1.Image),
ClearCollect(TempProfileColl, _myProfile), Back()
);
Patch(TempProfileColl, First(TempProfileColl), {userPhoto: UploadedImage1.Image});
Concurrent(
Set(_myProfile, First(TempProfileColl)),
Reset(AddMediaButton1)
);
Clear(TempProfileColl)
Can somebody help me with this? I would really appreciate!
Thank you.
Concurrent error - invalid arguments