Forum Discussion

Vivek Rajan's avatar
Vivek Rajan
Copper Contributor
Sep 11, 2018

Get Metadata information from SharePoint server

Hi We are using sharePoint rest api and we want to retrieve the Modified By,created By column metadata value. I tried the below options in my REST Endpoint $expand =modified by but not getting this metadata information.

  • Hi Vivek Rajan

     

    The API will return AuthorId and EditorId  by default, which contain the ID of the user that created and edited the item.

    If you want to return expanded properties of the user, you have to include Author and Editor on the expand parameter: 

    $expand=Author,Editor

     

    You can then select user properties like the example below

     

    $select=Author/ID,Author/Title,Author/EMail&$expand=Author

     

    Also, be aware that the properties are case sensitive. For example, email needs to be "EMail"

     

    Hope this helps

     

Resources