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

Kirti Kumari 1 Reputation point
2020-05-15T09:18:37.083+00:00

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 Monitored
Not Monitored
Tag not monitored by Microsoft.
35,960 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,651 Reputation points
    2020-05-15T09:26:53.617+00:00

    Hi,

    Q&A currently supports the products listed over here https://learn.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

    0 comments No comments