Overview:
For a long time, I have felt that Power Pages is capable of doing much more than what we usually limit it to. Most of the time, it stays tightly coupled with Dataverse and SharePoint, even though it has the flexibility to work beyond that boundary.
As with my other blogs, this one is also about integration, but with a combination that many wouldn’t expect. Based on the title, this blog walks through how Power Pages can be integrated with Firebase. As an add-on, I have also created a working CRUD demonstration with code to show that this is not just theory, but something that actually works.
What is Firebase ?
Firebase is a Google product that helps developers build, manage, and scale applications easily. In simple terms, Firebase is a Backend as a Service (BaaS).
Firebase provides multiple components such as authentication, NoSQL databases, configuration management, and file storage. Because of this, developers can focus more on improving the application experience instead of spending a lot of time building and maintaining a backend from scratch.
In this blog, Firebase Realtime Database is used, which is a NoSQL database that stores data in a JSON format.
Configure Firebase
- To configure Firebase for this integration, start by navigating to the Firebase Console and create a new project if you do not already have one. For this demonstration, a project named power-pages-crud was created.
- Once the project is created, Firebase redirects to the Project Overview page. From here, the database needs to be configured to store data.
- Navigate to the Realtime Database option under the Build section in the left menu and create a new database. After creation, the database will be visible in the console.
- To view, add, and edit records in the database, the database rules must be updated. Set both read and write permissions to true so that Power Pages can interact with the database.
- Since Firebase is a NoSQL database, it does not require predefined tables. If a record is added to a node that does not exist, Firebase automatically creates it.
Coding Part
- To use Firebase from a Power Pages site, Firebase Realtime Database REST APIs are used. These APIs allow reading, creating, updating, and deleting records by passing the correct parameters. Create a new page in Power Pages and open Edit code.
- Add the required HTML and JavaScript logic to the page. The JavaScript will call Firebase REST endpoints to perform CRUD operations. Below is the code which I've used for this demonstration.
- After adding the code, sync the Power Pages site and preview the page. Once loaded, the CRUD operations will work successfully.
HTML Code
JavScript Code
Below are the images of the CRUD demonstration
Create Record
Read Records
Edit Record
Delete Record
References:
- Implement portals Web API code components sample | Microsoft Learn
- Firebase | Google's Mobile and Web App Development Platform
- Firebase Console







