cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SteveBlueShift
Level: Powered On

Save Current User to SharePoint List using Patch

Hello Community,

 

I've got an issue that I haven't quite been able to solve and I'm hoping that someone can help me down the right path.

 

I have an app that is being used as a form for HR.  When HR needs to approve the request, we want the list to update with the Current User as a person field (only HR has access to this screen).

 

Currently, when the patch button is hit, the record doesn't update with the user.

I would like to achieve this without using the o365 connector if at all possible.  Here is the code I'm using in my Patch:

 

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

 

What am I missing?  

 

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
SteveBlueShift
Level: Powered On

Re: Save Current User to SharePoint List using Patch

I was able to solve my own issue.

        Claims:"i:0#f|membership|" & Lower(User().Email),

was missing a period.

 

"i:0#.f"

Worked as expected after that

1 REPLY 1
SteveBlueShift
Level: Powered On

Re: Save Current User to SharePoint List using Patch

I was able to solve my own issue.

        Claims:"i:0#f|membership|" & Lower(User().Email),

was missing a period.

 

"i:0#.f"

Worked as expected after that