Forum Discussion
ra1449
Jun 08, 2021Copper Contributor
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
- ra1449Copper ContributorI figured it out....
https://yourTenant.sharepoint.com/sites/yourSite/_api/web/lists/getbytitle('yourLibrary')/items?$select=CheckoutUser/Title,CheckoutUser/EMail&$expand=CheckoutUser/Id