Why SPAppWebUrl is empty string for the SharePoint 2013 provided hosted App?

I created a new SharePoint Provided Hosted App. In the app added a single App part using the add item template. I used the {StandardTokens} in the query string of the start page. I got all other values but the SPAppWebUrl was empty string. The problem is there was no app items being provisioned on the site so the SPAppWebUrl was not passed to the query string.

Solution:

The simple solution is I added a “dummyList” this created a feature. I deployed the app and tested this time the SPAppWebUrl was passed.

I hope this helps someone.

About Pankaj

I am a Developer and my linked profile is https://www.linkedin.com/in/pankajsurti/
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s