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

Helpful resources

Announcements
SecondImage

Join our Live PowerApps Webinar

Tomorrow, September 24st at 10am PDT

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 327 members 5,052 guests
Please welcome our newest community members: