cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
arunsethi
Regular Visitor

UpdateIf function to update People picker in SharePoint List

HI All,

 

I want to update people picker column of an existing SharePoint list item. Tried below code but didn't worked out.

Kindly guide.

 

 

UpdateIf(DataAnalysisRequest, Title = gblvarRequestNo, 
{ 'Assigned To':
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: ComboBox2.Selected.mail,
DisplayName: ComboBox2.Selected.displayName,
Email: ""
} 
})

 

 

Here - DataAnalysisRequest - SharePoint List, Title - unique ID , Assigned to - People picker column, Combobox2 - Combobox where am getting users from a Office365Groups

 

Kindly suggest.

Thank,

Arun

1 ACCEPTED SOLUTION

Accepted Solutions
PG_WorXz10
Resident Rockstar
Resident Rockstar

Hi @arunsethi ,

 

Try below code if it helps.

 

UpdateIf(DataAnalysisRequest, Title = gblvarRequestNo, 
{ 'Assigned To':

{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                                Claims: "i:0#.f|membership|" & Lower(ComboBox2.Selected.mail),
                                Department: "",
                                DisplayName: ComboBox2.Selected.displayName,
                                Email: ComboBox2.Selected.mail,
                                JobTitle: ".",
                                Picture: "."
                        }
})

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

View solution in original post

2 REPLIES 2
PG_WorXz10
Resident Rockstar
Resident Rockstar

Hi @arunsethi ,

 

Try below code if it helps.

 

UpdateIf(DataAnalysisRequest, Title = gblvarRequestNo, 
{ 'Assigned To':

{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                                Claims: "i:0#.f|membership|" & Lower(ComboBox2.Selected.mail),
                                Department: "",
                                DisplayName: ComboBox2.Selected.displayName,
                                Email: ComboBox2.Selected.mail,
                                JobTitle: ".",
                                Picture: "."
                        }
})

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

View solution in original post

arunsethi
Regular Visitor

@PG_WorXz10 Thanks for your help.

 

Regards,

Arun

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,394)