Hello Community Experts,
I was able to fetch the details from office 365 delve
But I'm struggling with how to update the logged in users details from power apps to office 365
Kindly guide
Best Regards,
Sumaira Noor
Solved! Go to Solution.
Hi @Sumaira :
Do you want to use the canvas app to update the profile of the currently logged in user?
I originally wanted to recommend "Office365Users.UpdateMyProfile" to you, but it looks like you have solved this problem yourself.
Please consider accept your solution as solution so that more people can see it.
Best Regards,
Bof
Hi @Sumaira :
Please try this code:
Office365Users.UpdateMyProfile({schools:Table({Value:TextInput3.Text})})
It should be noted that the data type of each parameter is different.
Best Regards,
Bof
Hi @Sumaira :
All I did was to reconstruct the value of TextInput3 into the form of a table so that it conformed to the format required by the school parameters.
You can all use "ClearCollect(ss,Office365Users.MyProfileV2())" to save personal information to the collection ss, and then refer to the data structure of the collection.
Best Regards,
Bof
Hi @Sumaira :
Do you want to add projuct instead of replacing the original projuct?
Please try this code:
Office365Users.UpdateMyProfile(
{
pastProjects: RenameColumns(
Split(
Concatenate(
TextInput5.Text,
"###",
Concat(
Office365Users.MyProfileV2().pastProjects,
Value,
"###"
)
),
"###"
),
"Result",
"Value"
)
}
)
Best Regards,
Bof
Hi @Sumaira :
Sorry I didn't understand what you mean, can you describe your needs in detail?
If you encounter any problems in practice, you can directly attach the code and errors, so that I can understand your meaning more easily.
Best Regards,
Bof
Hi @Sumaira
You can use a power automate to achieve this so you can trigger the Flow from your powerapps.
I have made a similar flow that runs but on Model Driven App User record change it updates the user Info in AD
Please check my blog post.
https://onlinemgblog.wordpress.com/2020/07/15/update-active-directory-from-cds-data/
If this was helpful to you and solved your problem please mark as an accepted solution.
@Mira_GhalyThanks a lot for the response
I have to use only O365 and Power Apps here
Please guide
Best Regards,
Sumaira
@Mira_GhalyMany thanks for the response
Office365Users.UpdateMyProfile({schools:TextInput2.Text});
I'm trying to use this feature
Please advise
Best Regards,
Sumaira
Hi @Sumaira :
Do you want to use the canvas app to update the profile of the currently logged in user?
I originally wanted to recommend "Office365Users.UpdateMyProfile" to you, but it looks like you have solved this problem yourself.
Please consider accept your solution as solution so that more people can see it.
Best Regards,
Bof
@v-bofeng-msftMany many thanks for responding
It is only updating one field
I'm getting error for skills field
@v-bofeng-msftPlease guide
Best Regards,
Sumaira
Hi @Sumaira :
Please try this code:
Office365Users.UpdateMyProfile({schools:Table({Value:TextInput3.Text})})
It should be noted that the data type of each parameter is different.
Best Regards,
Bof
@v-bofeng-msftMAny thanks I'll try it now
I should use a text box to update it or a gallery control?'
@v-bofeng-msftKindly guide
Best Regards,
Sumaira