How to get GUID of SharePoint list of given List Name using REST API?

 Get GUID of SharePoint(SP) list of given List Name:

Use one of below REST API to get guid of list-

REST API 1 will give you guid of SPList only.

1. _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getbytitle('SPList')/id
REST API 2 & 3 will give you guid, EntityTypeFullName, EntityTypeName etc of SPList

2._spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getbytitle('SPList')/items?select=id

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


Comments

Popular posts from this blog

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

Get SharePoint list name by GUID

Get Current Web Logged In User of SharePoint Site in jQuery