Forum Discussion

ra1449's avatar
ra1449
Copper Contributor
Jun 08, 2021

API call to get document properties and the checked out to display name and email

I'm using /_api/web/lists/getbytitle('myLibrary')/items?$select=CheckoutUserId in an ajax function.  I need the checked out to display name and email instead of the CheckoutUserId.   I tried appending with 

&$expand=CheckoutUserId/Id but get an error response, "The field or property 'CheckoutUserId' does not exist."  

1 Reply

  • ra1449's avatar
    ra1449
    Copper Contributor
    I figured it out....
    https://yourTenant.sharepoint.com/sites/yourSite/_api/web/lists/getbytitle('yourLibrary')/items?$select=CheckoutUser/Title,CheckoutUser/EMail&$expand=CheckoutUser/Id

Resources