Nov 21 2022 07:00 AM
We have created our Sharepoint User Profile Service with its own attribute. Users can change this value using Delve, but using Delve is very cumbersome. We want to create a simple form where the user selects his value and with the help of Power Automate this value should be entered in the User Profile Service. Is it possible to do something like this with Forms and Power Automate?
Nov 25 2022 01:49 AM - edited Nov 25 2022 01:50 AM
Yes it is! You can do it using Send Http To SharePoint:
| Name | Value |
| ------------ | ------------------------------------------------------------------ |
| Site Address | https://yourTenant.sharepoint.com/sites/yourSite |
| Method | POST |
| Uri | /\_api/SP.UserProfiles.PeopleManager/SetMultiValuedProfileProperty |
| Headers | Accept: application/json; odata=nometadata |
| Headers | content-type: application/json; odata=nometadata |
| Body | |
```
```json
{
"accountName": "i:0#.f|membership|UsersEmailFromForm",
"propertyName": "OnePiece",
"propertyValue": ["Luffy", "Zoro", "Nami", "Usopp", "Robin"]
}
```
I got a blog post from a while back that's step by step 🙂
https://yourmodernworkplace.com/blog/update-user-profile-properties-using-flow
Nov 25 2022 05:11 AM
Nov 25 2022 05:35 AM
Run it as an admin, so form runs in user context but the send http runs in admin context 🙂 that should solve it
Nov 25 2022 06:24 AM
Nov 25 2022 11:08 AM