Am creating a vanilla Napa app and am seeking to reference the host URL as follows:
var ctx = new SP.ClientContext(_spPageContextInfo.webServerRelativeUrl);
Yet _spPageContextInfo
is being flagged as undefined
. From what I have read this should be baked into SharePoint, so I cannot understand why it is not defined.
I'm sure the solution is simple, but can someone please advise?