How to identify an API for sharepoint inventory data for given shell script starts with - Function to Get all lists from the web.
Thank you,
Jyothi
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjay KumarPosted Jan 16, 2021, 10:20 AM
In this blog we will know that how to access data of Host Web in to the App web. In SharePoint add-in has its own app domain which is very secure. To access the outside data (from Host web or Tenant) in the SharePoint add-in is not permitted by the app domain. We cannot use the SP list data in add-in directly if list does not exist in the app domain. To create a connection between the two add-in or add-in and Host Web SharePoint list required the tenant permission in the app to access the tenant data and target should be host web url. Let’s have a look that how to achieve it by setting permission and code.
With the help of this setting we can access the data of any list which is outside of the app domain or exists in the tenant and also we can perform manipulation on the data in host site lists from SharePoint add-in.
REST API Syntax:
appWebUrl/_api/SP.AppContextSite(@t)/web?@t=’targetUrl’
Full URL Example:
http://xxxx-5334ef4b86c8ea.sharepointonline.com/apps/_api/SP.AppContextSite(@t)/web?@t=’http://xxxx.sharepointonline.com/anothersite’
Example: