Get list item entity type full name of a SharePoint list using REST API

Get list item entity type full name of a SharePoint list using REST API :

Follow the below steps to get ListItemEntityTypeFullName which must required for adding/updating items/records to the server or the SharePoint list.

1) First user/developer need logged in to the SharePoint site and then copy any of below URL/API.

2) Replace the _spPageContextInfo.webAbsoluteURL or siteurl (absolute URL) with the URL of you site

for example.
siteurl = https://testcompany.sharepoint.com/sites/testsite1

3) and replace SharePoint ListName = Payments or you original list name

4) Finally hit or place the complete URL/API

API = https://testcompany.sharepoint.com/sites/testsite1/_api/Web/Lists/getbytitle('Students')/ListItemEntityTypeFullName

into the browser search bar/box and click on enter button from keyboard then you will able to see output as shown in Output below



 _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getbytitle('ListName')/items?select=EntityTypeFullName

OR

siteurl(AbsoluteUrl) + /_api/Web/Lists/getbytitle('ListName')/ListItemEntityTypeFullName

Output:

If we hit or place the above REST API in browser search box  after logged in to SharePoint site and press enter the result will be as SP.Data.PaymentsListItem i.e., the ListItemEntityTypeFullName of a SharePoint List and It is very use full for adding/updating items/records in list.





If we hit or place the above REST API in browser search box  without logged in to SharePoint site and press enter the result will be an error "Attempted to perform an unauthorized operation."




Was the above article helpful ? Please comment your feedback and share this to your friends.



Comments

Popular posts from this blog

Get SharePoint list name by GUID

Get Current Web Logged In User of SharePoint Site in jQuery