1

I'm trying to use the Cross-Domain Javascript Library to query the host page in a provider hosted app for SharePoint Online. When I'm executing a query with the cross-domain library I get the following error

App Web is not deployed for this app's request url

I find this strange since I have both an SPHostUrl and SPAppWebUrl in the querystring. I added a List instance to the Sharepoint add-in so that an SPAppWebUrl should be created and it seems like so if you check the url. If I run the same query directly in the browser everything works as expected.

This is the query

https://app.sharepoint.com/_api/SP.AppContextSite(@target)/web/getFolderByServerRelativeUrl('/')?@target=%27host.sharepoint.com%27&$expand=Folders/Properties,Files/ModifiedBy

Does anyone know why I'm getting this error even though I seem to have an SPAppWebUrl.

0

Ok, the rror was caused by me giving the wrong SPAppWebUrl. I removed the name of the add-in from the SPAppWebUrl. I added that again and now it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.