setup-offline-profile

Creates and publishes Dataverse Mobile Offline Profiles for Power Apps mobile apps.

808|167|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/microsoft/power-platform-skills --skill setup-offline-profile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-offline-profile
Source: https://github.com/microsoft/power-platform-skills/tree/main/plugins/mobile-apps/skills/setup-offline-profile
Command: npx skills add https://github.com/microsoft/power-platform-skills --skill setup-offline-profile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Enabling offline mode for a Power Apps mobile app requires manually creating Mobile Offline Profile entities in Dataverse — defining per-table row scope, relationships, column selection, and sync intervals — a tedious, error-prone process normally done through the maker portal.

Core Features & Use Cases

  • Guided 3-gate approval flow: An architect agent designs the profile from your data model manifest, then you review and adjust table scope, sync intervals, and columns through structured prompts before anything is published.
  • End-to-end Dataverse provisioning: Creates the mobileofflineprofile, per-table profile items, and relationship associations via Web API, then publishes with targeted PublishXml.
  • Resume and idempotency: Checkpoints progress in memory-bank.md so interrupted runs resume from the last committed step, and duplicate POSTs are handled safely.
  • Use Case: You have a field-service mobile app with visit and note tables and want technicians to access data without connectivity — run this skill to design, review, and publish a complete offline profile in one session.

Quick Start

Ask the agent to set up an offline profile so my Power Apps mobile app works without connectivity.

Frequently Asked Questions about setup-offline-profile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable offline mode for a Power Apps mobile app?

Run this skill in a project that already has power.config.json and a data model manifest. It designs a Mobile Offline Profile from your tables, lets you review scope and sync intervals, then creates and publishes the profile in Dataverse.

How do I create a Mobile Offline Profile in Dataverse programmatically?

The skill POSTs a mobileofflineprofiles record, then one mobileofflineprofileitems row per table, then mobileofflineprofileitemassociations for relationships, and finally publishes via targeted PublishXml. All calls go through the Dataverse Web API.

Does offline profile setup work for web-only Power Apps projects?

Mobile Offline Profiles only apply to native iOS or Android targets. If app.config.js declares web-only platforms, the skill warns that no app will use the profile and asks for explicit confirmation before continuing.

What happens if offline profile creation is interrupted midway?

Progress is checkpointed in memory-bank.md after each step. On the next run the skill detects the in-progress profile, computes which items and associations were already committed, and offers to resume, start fresh, or cancel.

Why does publishing an offline profile fail with a circular relationship error?

Error 0x80071141 means the association graph contains a cycle, such as account to task back to account. The skill detects cycles before publishing and prompts you to remove one offending association, then retries the publish.

What are the limitations of the current offline profile skill version?

Version 0 covers authoring only: it does not modify power.config.json, scaffold an offline runtime, support custom filter mode, assign users or teams, or estimate row download counts. Those are deferred to later versions or separate skills.