Search code examples
sharepointsharepoint-apps

Sharepoint Online: Difference between SPAppWebUrl & SPHostUrl


Can someone explain what's the difference between the usage of SPAppWebUrl and SPHostUrl - from examples I guess that these URLs influence the context which is accessed.

Is this correct? And if yes - what are the differences in general (I already saw that Web.Lists gets back another collection of lists)? And are there more context URLs which I can use in my provider hosted app?

Could this be the issue of my other problem? See Sharepoint Online: Create & use List in Provider Hosted App (C#)


Solution

  • SPHostUrl is the url of the host url as the name already tells. That means it is the url of the sharepoint system.

    SPAppWebUrl is the url of the app web. For example it could is the provider hosted apps address.

    I think these are no other context urls.