cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RobWickham
Advocate III
Advocate III

SharePoint CheckoutUserId value mapped to user's name or email?

how do I find the user's name or email once I have the CheckoutUserId value? It's an integer, and I'm not finding the way to convert it to something useful for contacting that user.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

I mocked up a quick prototype.  I have a button that invokes a Flow to make the REST call.  I pass in the ID value as the input parameter.  When I get the results back from the REST call I parse the JSON to turn it into a object.  Then I respond to PowerApps with the Email field from the parsed json.  The return value is stored in a context variable. Here's a screenshot of the Flow

screenshot.png

This is the code to invoke the Flow.  I'm using a manual vlaue of "66" because I know that's a user in my system.

UpdateContext({returnvalue:('PowerAppsbutton-2'.Run("66")).email})

After the Flow returns the email address is in the returnvalue variable.

 

Hope that helps.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User III
Dual Super User III

That integer is the ID of the user entry in the hidden user list for the site collection.  I think the only way to get that is through a REST call using HTTP.  The call you need would be this one.

/_api/Web/GetUserById(ID#)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thanks!

 

I think I'm now getting that call working, but it's my first time handling an object (the User object includes many properties, and the Email property is the most important.) How do I access a specific property in an object? (I need to  assign that value to a string variable)

Pstork1
Dual Super User III
Dual Super User III

I mocked up a quick prototype.  I have a button that invokes a Flow to make the REST call.  I pass in the ID value as the input parameter.  When I get the results back from the REST call I parse the JSON to turn it into a object.  Then I respond to PowerApps with the Email field from the parsed json.  The return value is stored in a context variable. Here's a screenshot of the Flow

screenshot.png

This is the code to invoke the Flow.  I'm using a manual vlaue of "66" because I know that's a user in my system.

UpdateContext({returnvalue:('PowerAppsbutton-2'.Run("66")).email})

After the Flow returns the email address is in the returnvalue variable.

 

Hope that helps.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (919)