I have a regular .html file under root site and trying to make a REST call using _spPageContextInfo. What am I doing wrong here? Basically trying the code in this url but with _spPageContexInfo


  • Please format your code with the code button or adding 4 spaces for each line Commented Mar 3, 2016 at 20:04
  • I tried the code button it does not seem to format. Commented Mar 3, 2016 at 20:35

1 Answer 1


No, this will not work, as a plain HTML page is going to circumvent the master page, which is what causes all the dependent JavaScript objects to load. Use a standard SharePoint page instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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