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

%3CLINGO-SUB%20id%3D%22lingo-sub-2428211%22%20slang%3D%22en-US%22%3EAPI%20call%20to%20get%20document%20properties%20and%20the%20checked%20out%20to%20display%20name%20and%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2428211%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20using%26nbsp%3B%2F_api%2Fweb%2Flists%2Fgetbytitle('myLibrary')%2Fitems%3F%24select%3DCheckoutUserId%20in%20an%20ajax%20function.%26nbsp%3B%20I%20need%20the%20checked%20out%20to%20display%20name%20and%20email%20instead%20of%20the%20CheckoutUserId.%26nbsp%3B%20%26nbsp%3BI%20tried%20appending%20with%26nbsp%3B%3C%2FP%3E%3CP%3E%26amp%3B%24expand%3DCheckoutUserId%2FId%20but%20get%20an%20error%20response%2C%20%22%3CSPAN%3EThe%20field%20or%20property%20'CheckoutUserId'%20does%20not%20exist.%22%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2428211%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2440903%22%20slang%3D%22en-US%22%3ERe%3A%20API%20call%20to%20get%20document%20properties%20and%20the%20checked%20out%20to%20display%20name%20and%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2440903%22%20slang%3D%22en-US%22%3EI%20figured%20it%20out....%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2FyourTenant.sharepoint.com%2Fsites%2FyourSite%2F_api%2Fweb%2Flists%2Fgetbytitle('yourLibrary')%2Fitems%3F%24select%3DCheckoutUser%2FTitle%2CCheckoutUser%2FEMail%26amp%3B%24expand%3DCheckoutUser%2FId%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2FyourTenant.sharepoint.com%2Fsites%2FyourSite%2F_api%2Fweb%2Flists%2Fgetbytitle('yourLibrary')%2Fitems%3F%24select%3DCheckoutUser%2FTitle%2CCheckoutUser%2FEMail%26amp%3B%24expand%3DCheckoutUser%2FId%3C%2FA%3E%3C%2FLINGO-BODY%3E
New Contributor

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