add-server-logic

Solid

This skill should be used when the user asks to "create server logic", "add server-side code", "write server logic", "add server endpoint", "create API endpoint", "add backend logic", "write server-side JavaScript", "integrate server logic", "add server logic function", "add server-side processing", "create serverlogic", "add serverlogics", or wants to create, edit, or manage Power Pages Server Logic files — server-side JavaScript that runs securely on the Power Pages runtime. This skill orchestrates the full lifecycle: understanding requirements, fetching latest documentation, implementing the server logic code, configuring site settings, and deploying. Use this skill whenever the user mentions "server logic", "server-side code", or wants to move logic from the browser to the server in their Power Pages site.

API & Backend 317 stars 63 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding. # Add Server Logic Create and manage one or more Power Pages Server Logic files — server-side JavaScript that runs securely on the Power Pages runtime, hidden from the browser and protected by web roles and table permissions. Server Logic enables secure external API integrations, Dataverse operations, and custom business logic without exposing sensitive code or credentials to the client. ## Core Principles - **Microsoft Learn is the source of truth**: Always fetch the latest documentation before writing code. The Server Logic feature is in preview and the SDK may change — never rely on cached knowledge alone. - **No browser APIs, no dependencies**: Server Logic runs in a sandboxed server environment with ECMAScript 2023 support. There is no `fetch`, `XMLHttpRequest`, `setTimeout`, or any DOM API. No npm packages are available. - **Five functions only**: A server logic file can only export these top-level functions: `get`, `post`, `put`, `patch`, `del`. The name `delete` is a reserved word in JavaScript and cannot be used. - **Always return a string**: Every function must return a string. Use `JSON.stringify()` when returning objects or arrays. - **Use TaskCreate/TaskUpdate**: Track all progress throughout all phases — create the todo list upfront with all phases before starting any work. > **Prerequisites:** > - An existing Pow...

Details

Author
microsoft
Repository
microsoft/power-platform-skills
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Solid

integrate-backend

Use this skill when the user asks to "add backend integration", "connect to data", "set up backend", "integrate backend", "how should I access data", "add data access", "add an API", "server-side processing", "cloud flow or web api or server logic", "which backend approach", "integrate with an external service", "add business logic", "backend for my site", or wants help deciding between Web API, Server Logic, and Cloud Flows for their Power Pages site. This skill analyzes the user's business problem, identifies the right backend integration approach (or combination), and routes to the appropriate skill. Use this instead of jumping directly to a specific backend skill when the user's request doesn't clearly map to one approach.

317 Updated today
microsoft
Web & Frontend Solid

create-site

This skill should be used when the user asks to "create a power pages site", "build a code site", "scaffold a website", "create a portal", "make a new site", or wants to create a new Power Pages code site (SPA) using React, Angular, Vue, or Astro.

317 Updated today
microsoft
API & Backend Listed

backend-code

Server-side logic, data processing, and state management

2 Updated 4 days ago
DongDuong2001
Web & Frontend Solid

integrate-webapi

This skill should be used when the user asks to "integrate web api", "add web api", "connect to dataverse", "add api integration", "set up web api calls", "integrate api for my tables", "add crud operations", "hook up web api", "add data fetching", "connect frontend to dataverse", or wants to integrate Power Pages Web API into their site's frontend code with proper permissions and deployment. This skill orchestrates the full integration lifecycle: code integration, permissions setup, and deployment.

317 Updated today
microsoft
API & Backend Solid

setup-auth

This skill should be used when the user asks to "set up authentication", "add login", "add logout", "configure Entra ID", "set up Azure AD auth", "add Microsoft login", "enable authentication", "set up sign in", "add role-based access", "add authorization", "protect routes", "add auth to my site", "configure identity provider", or wants to set up authentication (login/logout via Microsoft Entra ID) and role-based authorization for their Power Pages code site.

317 Updated today
microsoft