Websites & CMS
Embed Microsoft Bookings in SharePoint Online
Intranets often need a booking page for IT help, HR appointments or room-side services. Modern SharePoint pages do not run scripts, so the BookingsXP script embed is out, but the widget's plain iframe works in the Embed web part once a site collection admin allows bookingsxp.com. This page covers that setup, the height, and what an iframe cannot do.
- Integration
- SharePoint Online
- Plan: Free
- Works on every plan, including Free ($0, no card).
- In short
- The widget's iframe in an Embed web part on a modern page, with bookingsxp.com allowed in HTML Field Security.
- Microsoft Bookings
- Stays your system of record. Bookings land in Outlook and Teams and Microsoft sends the invites and reminders.
- Trademarks
- SharePoint is a trademark of the Microsoft group of companies. BookingsXP is independent and not affiliated with or endorsed by Microsoft.
What happens with SharePoint Online
- Microsoft says the Embed web part accepts a link or embed code that begins and ends with iframe tags, over HTTPS only. Script-based embed code is not supported, so the loader cannot run on a modern page.
- Which domains an iframe may come from is set per site collection under HTML Field Security. Until bookingsxp.com is on that list, the web part shows "Embedding content from this website isn't allowed".
- The iframe loads bookingsxp.com/embed/<widget id> directly. Bookings are created in Microsoft Bookings as usual, with the BXP reference in the notes, but nothing is sent to the SharePoint page: no dataLayer, no resize, no redirect of the whole tab.
- Popup and floating buttons need the script, so they are not available. A Button web part linked to the hosted booking page gives you a booking button instead.
Set up SharePoint Online
Step 1: Copy the iframe code
In BookingsXP, open the widget's Publish step, choose I'm a developer, then the iframe tab. Set a pixel height: the web part does not grow with the widget, and about 900 px fits most booking forms.
HTML <iframe src="https://bookingsxp.com/embed/w_8fk2m1qz" title="Book an appointment" width="100%" height="900" style="border:0"></iframe>Step 2: Allow bookingsxp.com (site collection admin)
On the root site of the site collection, go to Settings → Site settings (or Site information → View all site settings). Under Site Collection Administration, select HTML Field Security, choose "Allow contributors to insert iframes only from the following domains", add bookingsxp.com and select OK. Each modern team or communication site is usually its own site collection, so repeat this on every site that shows the widget.
Domain to allow bookingsxp.comStep 3: Add the Embed web part
Edit the page, open the toolbox (+), select See all web parts if needed, and add Embed. Select Edit properties and paste the iframe code into the "Website address or embed code" box.
Step 4: Optional: a booking button to the hosted page
Add a Button web part, or a Quick links item, and link it to the widget's hosted page at bookingsxp.com/book/<your-name>. It opens the same template and colours as a full page, which also works for people on the SharePoint mobile app.
Step 5: Republish and check as a normal user
Republish the page and open it in a private window as someone without edit rights. Go through a whole booking, raise the height if the last step is cut off, then cancel the test appointment in Microsoft Bookings.
Outcomes and caveats
What you get
- A styled Microsoft Bookings calendar on a modern SharePoint page, rather than a link out to outlook.office.com.
- Bookings in Outlook and Teams as usual, with a BXP reference and the source in the notes.
- No custom script, app registration or SharePoint Framework package to deploy.
Limits and caveats
- Scripts do not run on modern pages, so there is no auto-height, popup, floating button or dataLayer event. Use a fixed height.
- The Bookings page must take bookings without sign-in. If "Require a Microsoft 365 account from my organization to book" is on, BookingsXP cannot show it; keep internal-only pages as a link to Microsoft's page instead.
- If you set Allowed websites on the widget, add your tenant's SharePoint host, for example contoso.sharepoint.com.
- A redirect-url opens the thank-you page inside the web part, not the whole tab.
- A developer could load the script on every page with a SharePoint Framework Application Customizer. BookingsXP does not ship one, and your tenant's app catalogue rules apply.
Troubleshooting
- The web part says "Embedding content from this website isn't allowed".
- bookingsxp.com is not on the HTML Field Security list for this site collection. Ask a site collection admin to add it, as in step 2. On a Microsoft 365 group-connected team site, the group's owners are site collection admins.
- There is no HTML Field Security link in Site settings.
- You are not a site collection administrator, or you are on a subsite. Open the root site of the site collection, or ask the site's admin or your SharePoint admin.
- The frame says the booking page only accepts people signed in to the organization.
- The Bookings page requires a Microsoft 365 account. Microsoft's sign-in page refuses to load in a frame, so this cannot be embedded. Turn the requirement off in Bookings, or link to the Bookings page instead.
- The calendar or form is cut off at the bottom.
- Raise the height in the iframe code, for example height="1100", and paste it into the web part again. Check on a narrow window too, where the form is taller.
- The frame says "This booking widget isn't enabled on this website."
- Allowed websites is set on the widget. Add your tenant's host, such as contoso.sharepoint.com, or clear the list.
SharePoint Online questions
Start free, no card
One widget, four templates, GTM and GA4 events and attribution in every booking. No card, no time limit.
No Microsoft sign-in or admin consent. Free plan, no card.