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

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
Super User
Super User

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

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({returnvalueSmiley Sad'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.
3 REPLIES 3
Super User
Super User

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

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.
RobWickham
Level: Powered On

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

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)

Super User
Super User

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

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({returnvalueSmiley Sad'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.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 240 members 5,052 guests
Please welcome our newest community members: