Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

5.3 KB
Raw Blame

Connector Planning Reference

Shared logic for inferring and confirming Power Platform connectors from app requirements. Used by native-app-planner, architecture-planner, setup-datamodel, and the read-only planning phase of /edit-app. Discovery and proposal are not implementation.


Step 1 — Infer Connectors from Requirements

Scan the requirements text and wizard answers for keywords. Map matches to connectors. Do NOT ask the user yet — propose first.

If requirements mention… Infer this connector API name Skill
email, inbox, send email, outlook, calendar, meeting, appointment Office 365 Outlook office365 /add-connector office365
SharePoint, SP list, document library, site, .sharepoint.com SharePoint Online sharepointonline /add-sharepoint
Teams, channel, post message, Teams chat, @mention Microsoft Teams teams /add-connector teams
Excel, spreadsheet, workbook, .xlsx Excel Online (Business) excelonlinebusiness /add-connector excelonlinebusiness
OneDrive, file upload, file download, file storage OneDrive for Business onedriveforbusiness /add-connector onedriveforbusiness
Azure DevOps, work item, bug, sprint, pipeline, ADO Azure DevOps azuredevops /add-connector azuredevops
Copilot Studio, copilot agent, chatbot, bot, MCS Copilot Studio mcscopilot /add-connector mcscopilot
SQL, database, Azure SQL, SQL Server SQL Server sql /add-connector sql

If a requirement is vague (e.g., "external data", "third-party API") but no keyword matches, do not infer a connector — flag it as "unknown, will need /add-connector at runtime."

Important: Dataverse is NOT listed here. Dataverse schema belongs in ## Data Model and is implemented by /add-dataverse. Do not infer Dataverse merely from structured data: SQL/Excel/SharePoint tables remain connector data. Action-only integrations need no Dataverse model unless the user separately requires Dataverse persistence. Reuse the approved data platform.

Application Insights is also NOT a connector requirement. If requirements mention Application Insights, app analytics, diagnostics, telemetry, traces, or monitoring of this generated app:

  • Do not infer the Azure Application Insights connector.
  • Do not propose a custom connector.
  • Do not raise a connector-constraint approval question.
  • Exclude the telemetry request from ## Connectors.
  • Record, at most, this note after the connector table: Application Insights telemetry is configured separately by the /setup-app-insights skill through PowerAppsProvider; it is not a Power Platform data connector.

This exception applies only to host/runtime observability. Business features that read monitoring data or query another system still require an appropriate connector.


Step 2 — Present to User for Confirmation

After inferring, present using AskUserQuestion:

"Based on your requirements, I think your app needs these external connectors:

Connector Why
Office 365 Outlook [specific requirement that triggered this]
SharePoint Online [specific requirement]

Does this look right? Select all that apply, or tell me if I missed any."

Provide a multi-select with:

  • Each inferred connector as a pre-selected option
  • "Add another connector" as a free-text option
  • "No connectors needed" to opt out entirely

If no connectors were inferred from requirements, still ask:

"Does your app need to connect to any external services? For example: SharePoint, Teams, email, Excel, OneDrive, Azure DevOps."

Give the user a multi-select of the full connector list (none pre-selected).


Step 3 — Build the Connector Plan Section

For each confirmed connector, record:

## Connectors

| Connector | API name | Why needed | Skill |
|---|---|---|---|
| Office 365 Outlook | `office365` | Send task completion notifications | `/add-connector` |
| SharePoint Online | `sharepointonline` | Read project milestones list | `/add-connector` |

If no connectors: write "None — this app uses only Dataverse and/or device-native capabilities."


Step 4 — Pass to Screen Planner

When spawning the screen-planner agent, include the confirmed connector list in the prompt:

Connectors confirmed:
- Office 365 Outlook (office365) — send task completion notifications
- SharePoint Online (sharepointonline) — read project milestones list

Per-screen specs must reference the correct generated service for each data access:
- Dataverse tables → use Cr123_<Table>Service from src/generated/services/
- Connectors → use <ConnectorName>Service from src/generated/services/

This ensures every screen spec names the exact service the screen-builder agent will import.


Execution Mapping

At execution time, each confirmed connector maps to a skill invocation:

Connector Invocation
SharePoint Online /add-sharepoint
Any other non-Dataverse connector /add-connector <api-name>

/add-connector owns the pa app add data-source call for its connector. The orchestrator never calls pa app add data-source directly.

Invoke these skills only in the implementation phase with MOBILE_APP_ORCHESTRATING=1 and the explicit approved context from app-edit-routing.md. Forward it when a router delegates.