add-table-to-offline-profile

Adds a Dataverse table to an existing Mobile Offline Profile via Dataverse API calls.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When a new Dataverse table is added to a Power Apps mobile project, it is not automatically available offline. This Skill extends an existing Mobile Offline Profile with that table so mobile users can sync its data without re-running the full offline profile setup.

Core Features & Use Cases

  • Single or bulk table addition: Add one table by name, pick interactively from tables missing in the profile, or use --all-new to add every manifest table not yet in the profile.
  • Automated prerequisite handling: Checks and auto-enables IsAvailableOffline and ChangeTrackingEnabled entity flags, then publishes customizations.
  • Scope and column configuration: Prompts for a record distribution scope (user rows, all records, related rows only, or custom), creates profile item associations for relationships, and PATCHes the curated selectedcolumns set.
  • Use Case: After running /add-dataverse to add a new expense table to a mobile app, invoke this Skill to add that table to the existing offline profile, publish it, and update offline-profile.json and memory-bank.md artifacts.

Quick Start

Ask the agent to add the new Dataverse table to my existing mobile offline profile so it syncs on devices.

Frequently Asked Questions about add-table-to-offline-profile

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

FAQPage Schema
How do I add a Dataverse table to an existing Mobile Offline Profile?

Invoke this skill with the table's logical name, or run it interactively to pick from manifest tables not yet in the profile. It creates the profile item, adds relationship associations, sets selected columns, and publishes the profile.

How do I add multiple new tables to an offline profile at once?

Use the `--all-new` flag to add every table in the data model manifest that is not already in the profile. Each table is processed sequentially because Dataverse profile-item POSTs serialize.

What happens if a table is not enabled for offline use in Dataverse?

The skill checks `IsAvailableOffline` and `ChangeTrackingEnabled` on the entity metadata and auto-enables them when the table is customizable. If `IsCustomizable` is false, it stops with a BLOCKED status because system-managed tables cannot be flagged for offline.

Can this skill add many-to-many relationships to an offline profile?

No. It only handles N:1 and 1:N relationships via profile item associations. For many-to-many offline scenarios, use the Power Apps maker portal instead.

Why does a related-rows-only table sync zero rows in the offline profile?

A table with `recorddistributioncriteria: 0` needs at least one inbound relationship association in the profile. The skill validates this and warns when no associations are created for a related-only scoped table.