question

KirtiKumari-4686 avatar image
0 Votes"
KirtiKumari-4686 asked ·

Unable to fetch CheckoutUser field value of sharepoint document library using rest

Hi,

i'm trying to find out if an item in sharePoint document library is checked out or not , if yes then the email of the checked out user using rest API as :
'/_api/web/lists/getbytitle('SampleDocuments')/items(itemId)$Select=FileLeafRef,BaseName,CheckoutUser/Id,CheckoutUser/EMail&$expand=CheckoutUser/Id'

strange problem is sometime i'm getting the value but sometime (mostly after checking out the file) even if it is checked out by the user i'm not getting value for CheckoutUser by rest api , any idea what is creating problem here would be a great help.

not-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLaude avatar image
0 Votes"
LeonLaude answered ·

Hi,

Q&A currently supports the products listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

You can reach the experts in the dedicated SharePoint forum over here:
https://social.technet.microsoft.com/forums/en-us/home?category=sharepoint

(please don't forget to mark helpful replies as answer)

Best regards,
Leon


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.