PREVIEW 31 October 2025 16 min read

Power Pages Server Logic: Server-Side JavaScript for Secure Business Logic (Preview)

Power Pages Server Logic (Preview): Server-side JavaScript, Dataverse connector, HttpClient and external APIs. Includes 3 ready-to-use code templates.

Preview Feature

Server Logic is currently in Preview. Use it for testing and development, but avoid production-critical scenarios until General Availability (GA).

Server Logic brings server-side JavaScript execution to Power Pages. Finally, you can hide business logic from the browser, perform bulk operations, and call external APIs securely.

This guide covers the key capabilities with 3 ready-to-use code templates.

What is Server Logic?

Server Logic enables you to write JavaScript code that executes on the server, not in the browser. This means:

  • Hidden business logic - Code invisible to end users
  • Secure API calls - API keys never exposed to browser
  • Bulk operations - Process multiple records efficiently
  • Complex calculations - Offload heavy processing to server

Key Capabilities

Server.Connector.Dataverse

Direct Dataverse access without Web API

  • Create, Read, Update, Delete
  • Batch operations
  • FetchXML queries

HttpClient

Call external APIs securely

  • REST API integration
  • Secure credential handling
  • Response processing

Common Use Cases

Bulk Data Processing

Process hundreds of records without browser timeouts

External API Integration

Call payment gateways, shipping APIs, or CRM systems

Complex Business Logic

Pricing calculations, discount rules, validation logic

Want to Explore Server Logic?

Get expert guidance on implementing Server Logic for your Power Pages project.

Book Consultation
Tino Rabe

Tino Rabe

Microsoft Power Pages MVP

Microsoft MVP for Power Pages. I help mid-sized companies build secure customer portals.

Questions about this topic?

Let's talk about it.

Book a call