web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Unanswered

Shell is not defined when page template does not include header/footer

(1) ShareShare
ReportReport
Posted on by 2

We are having an issue with our pages where we cannot run CRM webapi calls when we have the "Use Website Header and Footer" option on the Page Template toggled off. We have it off due to numerous major conflicts between the default power pages content and the custom bootstrap theme we are utilizing. We have tried a few different solutions including those offered in these two forum posts to no avail: 

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/414980/power-apps-portal-web-api-shell-is-not-defined

https://powerusers.microsoft.com/t5/Power-Apps-Portals/Powerapps-portal-Web-API-Wrapper-Says-shell-is-not-defined/td-p/1474328

 

Is there any effective method to acquire specifically the file(s) for defining shell so we can manually load them in and avoid conflicts with the header. The api calls do work with the header/footer turned on, however it would place us in a similar situation of needing to disable a bunch of the javascript/jquery files that come with and conflict with our custom theme.

Categories:
I have the same question (0)
  • dgray304 Profile Picture
    176 on at
    Shell is not defined when page template does not include header/footer
    July 30, 2025.   Still an issue. 
     
    Having the same problem.  Works with default header.  Not without.
     
    Doug
     
     
  • JonathanFrometa Profile Picture
    8 on at
    Re: Shell is not defined when page template does not include header/footer

    Wait, I have multi step form, which is using the default template with header and footer, in the first step I got the error "Uncaught ReferenceError: shell is not defined", in the second step I don't have the error, I don't understand why shell object is not available in this context, technically should be the same, right? Any suggestions or idea? Another thing is that I have the. 

  • mypoweruser23 Profile Picture
    4 on at
    Re: Shell is not defined when page template does not include header/footer

    @Travesty  - Did you get it resolved?

  • mypoweruser23 Profile Picture
    4 on at
    Re: Shell is not defined when page template does not include header/footer

    Any solution for this issue, I am also facing the same issue.

  • CampoD3 Profile Picture
    3 on at
    Re: Shell is not defined when page template does not include header/footer

    Same problem here.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#2
Lucas001 Profile Picture

Lucas001 48 Super User 2025 Season 2

#3
KevinGador Profile Picture

KevinGador 44 Super User 2025 Season 2

Featured topics