cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Skilled Sharer
Skilled Sharer

Save Office365 User empl ID to SharePoint

I am trying to save a users ID, save in a variable, to a SharePoint list.  I have numerous methods and it simply does not save.  I have the following:

SharePoint column - 

  • EmpId - Single line of text

PowerApp

  • OnStart - Set(gloThisUserId, Office365Users.MyProfileV2().mailNickname (this is used to store emp id)

For the patch statement, I have tried:

    Patch(
          List name, 
                 {EmpId: gloThisUserId}
       )

 

I have also tried adding a label populated with the gloThisUserId and modifying Patch to:

     

   Patch(
          List name, 
                 {EmpId: Label1.Text}
       )

The only why it has worked is when I hard coded the text:

   Patch(
          List name, 
                 {EmpId: "123456"}
       )

 

Any idea why it won't patch the variable value? Or label text?  Ahhhh - please help!  Seems so simple but I cannot figure this one out.

4 REPLIES 4
Highlighted
Skilled Sharer
Skilled Sharer

Re: Save Office365 User empl ID to SharePoint

Raising this to the top - hoping for a resolution.  I have an app I need to release for testing by next week and this is a critical piece.  Any ideas how to resolve.

Highlighted
Continued Contributor
Continued Contributor

PLEASE - ANYBODY? : Save Office365 User empl ID to SharePoint

Any thoughts on this one -- I really need a solution.

Thanks!

Highlighted
Skilled Sharer
Skilled Sharer

Re: PLEASE - ANYBODY? : Save Office365 User empl ID to SharePoint

This seems to be resolved. No change in my part so not sure what fixed the issue.
Highlighted
Super User
Super User

Re: PLEASE - ANYBODY? : Save Office365 User empl ID to SharePoint

Wow! It just started working eh? Ugh! Those are the toughest!

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,599)