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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Shell is not defined w...
Power Pages
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)
  • CampoD3 Profile Picture
    3 on at

    Same problem here.

  • mypoweruser23 Profile Picture
    4 on at

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

  • mypoweruser23 Profile Picture
    4 on at

    @Travesty  - Did you get it resolved?

  • JonathanFrometa Profile Picture
    8 on at

    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. 

  • dgray304 Profile Picture
    217 on at
    July 30, 2025.   Still an issue. 
     
    Having the same problem.  Works with default header.  Not without.
     
    Doug
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 89 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard