Author Fields Archives : Binary Bits https://blog.binarybits.net/tag/author-fields/ Bits & Pieces - A blog by Kannan Balasubramanian Fri, 05 May 2017 06:22:52 +0000 en-GB hourly 1 https://wordpress.org/?v=6.5.2 Get SharePoint Item’s Author Details using REST https://blog.binarybits.net/get-sharepoint-items-author-details-using-rest/ https://blog.binarybits.net/get-sharepoint-items-author-details-using-rest/#respond Fri, 05 May 2017 04:49:49 +0000 https://blog.binarybits.net/?p=825 When we fetch document details from the SharePoint, sometimes we may need to get the Author details as well. By default when we do ODATA REST query, we will get only Authorid with a number as a result. To get Author’s additional details we may need to expand the selected item as show below. https://server/sites/sitecollection/_api/web/Lists/GetByTitle('Documents')/Items?$select=Author/Title,Author/Name,Author/EMail,Author/MobilePhone,Author/SipAddress,Author/Department,Author/JobTitle,Author/FirstName,Author/LastName,Author/WorkPhone,Author/UserName,Author/Office,Author/ID,Author/Modified,Author/Created,*&$expand=Author […]

The post Get SharePoint Item’s Author Details using REST appeared first on Binary Bits.

]]>
When we fetch document details from the SharePoint, sometimes we may need to get the Author details as well. By default when we do ODATA REST query, we will get only Authorid with a number as a result.

To get Author’s additional details we may need to expand the selected item as show below.

https://server/sites/sitecollection/_api/web/Lists/GetByTitle('Documents')/Items?$select=Author/Title,Author/Name,Author/EMail,Author/MobilePhone,Author/SipAddress,Author/Department,Author/JobTitle,Author/FirstName,Author/LastName,Author/WorkPhone,Author/UserName,Author/Office,Author/ID,Author/Modified,Author/Created,*&$expand=Author

Following list show all the valid Author fields

  1. Title
  2. Name
  3. EMail
  4. MobilePhone
  5. SipAddress
  6. Department
  7. JobTitle
  8. FirstName
  9. LastName
  10. WorkPhone
  11. UserName
  12. Office
  13. ID
  14. Modified
  15. Created

Source: https://social.technet.microsoft.com/wiki/contents/articles/31210.sharepoint-2013-get-user-details-from-person-or-group-field-using-rest-api.aspx

The post Get SharePoint Item’s Author Details using REST appeared first on Binary Bits.

]]>
https://blog.binarybits.net/get-sharepoint-items-author-details-using-rest/feed/ 0