I am trying to get all list items in same name lists across the all sub sites having same names list. example list name: 'Action'
Now I want to get all 'Action' lists items across the all sub sites.
How do I write rest search api call for it?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityYou can retrieve your list items by using the following Search REST API Query in case you have used the same content type in the all Action Lists :
https://site.sharepoint.com/_api/search/query?querytext='ContentTypeId:0x01007CE30DD1206047728BAFD1C39A85012*'
You can get your content type using the following steps :
Note : I removed the last 0 from the content type and added a * instead