Posts

Showing posts with the label Power Pages

Use Power Fx in Power Pages (Preview)

Image
Use Power Fx in Power Pages (Preview) Power Fx is the low-code language used across the Microsoft Power Platform to express business logic. It is a general-purpose, strongly typed, declarative, and functional programming language. Power Fx is written in human-friendly text and is designed to be authored directly by makers using an Excel-like formula bar. Its concise syntax makes it easy for both citizen developers and professional developers to build dynamic behavior. Note: Power Fx syntax in Power Pages requires formulas to begin with an equals sign (=), similar to Excel. This syntax might differ from what you are used to in Power Apps or Power Automate. Power Fx enables collaboration across no-code, low-code, and pro-code teams by allowing logic to be written in a consistent and readable manner. Important: This is a preview feature. Preview features are not intended for production use and m...

Tutorial: Add a Custom Page Layout in Power Pages

Image
Tutorial: Add Custom Page Layout to Your Power Pages Site When you create new webpages using the Pages workspace in Power Pages, you can choose from predefined page layouts. In some scenarios, you may want to create a custom page layout to display information in a specific format or provide a specialized user interface. In this tutorial, we create a custom page layout using Liquid . The example demonstrates a two-column layout with the main site menu on the left and page content on the right. What We Will Build Create a common base web template with custom layout code Create a second web template that extends the base template Create a page template referencing the web template Create a web page using the custom page layout Prerequisites A Power Pages subscription or trial An existing Power Pages site Basic knowledge of HTML and Liquid Step 1: Create a Web Template and Wri...

Exercise: Display a List of Accounts Using Liquid in Power Pages

Image
Exercise: Display a List of Accounts Using Liquid in Power Pages In this hands-on lab, you learn how to access Dataverse data using Liquid code. The goal of this exercise is to: • Enter Liquid code as page content • Access Dataverse data using Liquid • Use conditional statements to display available data You will create a page that lists active accounts and shows the total number of accounts. Step 1: Open Power Pages Design Studio Sign in to Power Pages and open the website you want to edit. Step 2: Create the Suppliers Webpage In the Pages workspace, select + Page, enter "Suppliers" as the page name, choose the blank template, and add the page. Step 3: Add HTML and Liquid Code On the Suppliers page, add a text component and replace its placeholder with the following HTML and Liquid: <h2>Lis...

Using Liquid in Power Pages – Step by Step guide

Image
Using Liquid in Power Pages – Step by Step Learn how to add a simple Liquid expression to a Power Pages site. Example Used The following Liquid expression displays the current time dynamically whenever the page is loaded. Hello, visitor. The time is {{ 'now' | date: 'g' }} Steps to Add This Liquid Example in Power Pages Step 1: Open your Power Pages site using Design Studio. Step 2: Navigate to the page where you want to display the Liquid content. Step 3: Select the text component or section on the page. Step 4: Paste the Liquid expression directly into the content area. Step 5: Save the page and preview the site. When the page loads, Power Pages evaluates the Liquid expression on the server and replaces it with the current time before sending the HTML to the browser. Why This Works ...

Power Pages Liquid Overview

Power Pages Liquid Templates - Complete Guide Understand how Liquid works in Power Pages and how it helps build dynamic, Dataverse-driven portal pages and blog layouts. What is Liquid in Power Pages? Liquid is an open-source templating language built into Microsoft Power Pages. It allows developers to render dynamic content from Dataverse, control visibility, and customize portal layouts without using JavaScript. Liquid runs on the server side and outputs clean HTML, ensuring security and performance for Power Pages websites. Where Liquid is Used in Power Pages • Web Templates for reusable layouts • Page Templates to define page structure • Page content in advanced editor • Content Snippets for reusable UI blocks Core Liquid Components Liquid Objects Liquid objects expose runtime data such as cu...

Power Pages – Add Advanced Client-Side Functionality

Image
Power Pages – Add Advanced Client-Side Functionality Exercise Step-by-step lab to enable portals Web API, retrieve Dataverse data, and render it as a chart using an external library. What Is Sample Data? Sample data is a set of pre-built records that Microsoft provides to help you understand how data is structured and how features work inside Dataverse and Power Pages. It populates common tables with realistic content so you can quickly test functionality without creating all records manually. When sample data is installed in a Dataverse database, it adds a variety of records across multiple standard tables which you can use for development, learning, or demos. What Sample Records Are Included The sample dataset adds records that help you experiment with core tables like: Accounts  - companies with names and revenue data Contacts  - people asso...

Power Pages Web API – Full Explanation & CRUD Operations

Image
Power Pages Web API – Full Explanation & CRUD Operations A complete overview of how the Web API works in Power Pages, how to enable it, how security works, and how to perform Create, Read, Update, and Delete operations on Dataverse records. What Is the Power Pages Web API? The Power Pages Web API allows you to interact with Dataverse data directly from your website using JavaScript or client-side code. It works similar to standard REST APIs and supports Create, Read, Update, and Delete (CRUD) operations. It enables developers to build modern, interactive, dynamic features in Power Pages without relying only on out-of-the-box forms and lists. Web API calls work securely and respect Dataverse permissions. Key Capabilities Perform CRUD operations on Dataverse tables Build custom UI components with real-time data Use JavaScript on pages to fetch or update data ...

Power Pages Authentication Key - Full Explanation

Image
Power Pages Authentication Key – Full Explanation Power Pages uses secure Server-to-Server (S2S) authentication to communicate with Microsoft Dataverse. When you create a Power Pages site, the system automatically generates an Azure AD Application along with an Authentication Certificate Key. This key enables the website to fetch and send Dataverse data securely. Why the Authentication Key Must Be Updated Every Year Each authentication key has a fixed expiration period. When it expires, the website can no longer authenticate with Dataverse. Microsoft enforces this expiration for higher security, preventing long-term reuse of certificates. Ensures continued security by rotating encryption certificates Prevents sudden outages caused by expired authentication keys Follows enterprise compliance and Microsoft best...

Power Pages - Connectivity to Microsoft Dataverse (Full Explanation)

Image
Power Pages – Connectivity to Microsoft Dataverse (Full Explanation) Understand how Power Pages securely connects to Dataverse using Azure AD, S2S authentication, Application Users, and backend integration. 1. Server-to-Server (S2S) Connection Overview When a Power Pages site is created, an Azure AD (Microsoft Entra) application is automatically provisioned. This application uses a secure X.509 authentication certificate to request tokens and communicate with Dataverse. The Azure AD app name usually follows: Portals - portalid Never delete or modify this app - the website will stop functioning The authentication certificate key expires every 2 years and must be rotated Connectivity Diagram: Microsoft provides a visual diagram showing how Power Pages securely communicates with Dataverse through Azure AD. View Dataverse ↔ Power Pages Connectivity D...

Power Pages - Full Introduction Module Overview

Power Pages - Full Introduction Module Overview A detailed breakdown of everything covered in the official Microsoft Learn "Power Pages Introduction" module. 1. What Is Power Pages? Power Pages is a secure, low-code platform used to build external-facing business websites. It allows organizations to create portals for customers, partners, vendors, and the public. Unlike static websites, Power Pages is fully integrated with Microsoft Dataverse, enabling dynamic forms, lists, authentication, and business processes. Common use cases include self-service portals, registration systems, customer support, data-entry sites, and information portals. 2. Core Components of Power Pages Power Pages relies on several key components: Dataverse: Stores all business data, permis...