Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
microsoft avatar

Add Sharepoint

  • 186 installs
  • 572 repo stars
  • Updated July 28, 2026
  • microsoft/power-platform-skills

Power Apps skill for adding SharePoint Online connector, discovering sites and lists, and configuring SharePointOnlineService calls.

About

Twelve-step workflow for wiring SharePoint Online into Power Apps code apps. Distinguishes existing lists from new list creation paths. For new lists, sets up Graph API auth with Sites.Manage.All, queries existing lists to reuse or extend schemas, and creates lists with safe helper functions. Discovers connection IDs via list-connections, enumerates sites with power-apps list-datasets, and lists tables per site. Adds each selected list with add-data-source using connection ID, site URL, and table name. Documents SharePointOnlineService GetItems, PostItem, ListFolder, and GetFileContent patterns with column encoding gotchas. Requires reading sharepoint-reference.md before code, npm run build verification, and memory-bank updates.

  • Dual path: connect existing SharePoint lists or create new ones via Graph API
  • Graph auth with Initialize-SharePointGraphApi and Sites.Manage.All permission
  • CLI discovery: list-datasets for sites, list-tables per site, add-data-source per list
  • SharePointOnlineService TypeScript patterns for items, posts, and document libraries
  • Column encoding rules: spaces become _x0020_, choice fields use string values not picklist codes

Add Sharepoint by the numbers

  • 186 all-time installs (skills.sh)
  • Ranked #2,128 of 4,386 Backend & APIs skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

add-sharepoint capabilities & compatibility

Capabilities
discover sharepoint sites · add sharepoint datasource · create sharepoint lists · configure sharepoint service calls
Works with
sharepoint · azure
Use cases
api development · orchestration
From the docs

What add-sharepoint says it does

Adds SharePoint Online connector to a Power Apps code app. Use when reading lists, managing documents, or integrating with SharePoint sites.
SKILL.md
npx skills add https://github.com/microsoft/power-platform-skills --skill add-sharepoint

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs186
repo stars572
Security audit3 / 3 scanners passed
Last updatedJuly 28, 2026
Repositorymicrosoft/power-platform-skills

How do I connect SharePoint lists or document libraries to my Power Apps code app?

Add SharePoint Online connector to a Power Apps code app for list reads, document management, site integration, and optional new list creation via Graph API.

Who is it for?

Developers building Power Apps code apps that read lists, manage documents, or create SharePoint lists.

Skip if: Standalone SharePoint admin without a Power Apps code app context.

When should I use this skill?

User needs SharePoint lists, document libraries, or Graph API list creation in a Power Apps code app.

What you get

SharePoint connector configured with site URLs, selected tables added, TypeScript service calls working, and build passing.

Files

SKILL.mdMarkdownGitHub ↗

📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md) - Cross-cutting concerns.

References:

  • sharepoint-reference.md - Column encoding, choice fields, lookups, API patterns (CRITICAL)
  • api-authentication-reference.md - Graph API auth, token, site ID
  • list-management-reference.md - Query, create, extend lists and columns

Add SharePoint

Two paths: existing lists (skip to Step 6) or new lists (full workflow).

Workflow

1. Check Memory Bank → 2. Plan → 3. Setup Graph API Auth → 4. Review Existing Lists → 5. Create Lists → 6. Get Connection ID → 7. Discover Sites → 8. Discover Tables → 9. Add Connector → 10. Configure → 11. Build → 12. Update Memory Bank

---

Step 1: Check Memory Bank

Check for memory-bank.md per shared-instructions.md.

Step 2: Plan

Ask the user:

1. Which SharePoint list(s) do they need? 2. Do the lists already exist on their site, or do they need to create new ones?

If lists already exist: Skip to Step 6.

If creating new lists:

  • Ask about the data they need and design an appropriate schema
  • Reuse existing lists when possible (don't duplicate)
  • Enter plan mode with EnterPlanMode, present the list designs with columns and types
  • Get approval with ExitPlanMode

Step 3: Setup Graph API Auth (if creating lists)

See api-authentication-reference.md for full details.

az account show   # Verify Azure CLI logged in

$api = Initialize-SharePointGraphApi -SiteUrl "https://<tenant>.sharepoint.com/sites/<site-name>"
$headers = $api.Headers
$siteId = $api.SiteId

Requires Sites.Manage.All permission.

Step 4: Review Existing Lists (if creating lists)

Always query existing lists first before creating:

$existingLists = Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/sites/$siteId/lists?`$select=id,displayName,description,list&`$filter=list/hidden eq false" -Headers $headers

See list-management-reference.md for Find-SimilarLists, Compare-ListSchemas, and Get-ListSchema functions.

Present findings to user with AskUserQuestion:

  • Lists that can be reused (already exist with matching columns)
  • Lists that need extension (exist but missing columns)
  • Lists that must be created (no match found)

Step 5: Create Lists (if creating lists)

Get explicit confirmation before creating. Use safe functions from list-management-reference.md:

  • New-SharePointListIfNotExists
  • Add-SharePointColumnIfNotExists
  • Add-SharePointLookupColumn (for cross-list references)

Step 6: Get Connection ID

Find the SharePoint Online connection ID (see connector-reference.md):

Run the /list-connections skill. Find the SharePoint Online connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from power.config.json or a prior step): https://make.powerapps.com/environments/<environment-id>/connections+ New connection → search for the connector → Create.

Step 7: Discover Sites

List available SharePoint sites the user has access to:

npx power-apps list-datasets -a sharepointonline -c <connection-id>

Present the sites to the user and ask which one(s) they want to connect to. If the user already specified a site URL, confirm it appears in the list.

If `npx power-apps list-datasets` fails or returns no results:

  • Auth error: Run npx power-apps logout, then retry — the CLI will re-prompt browser login.
  • Empty list: Confirm the connection ID is for a SharePoint Online connection and the user has access to at least one site. STOP if the list is empty after confirming.
  • Any other non-zero exit: Report the exact error output. STOP.

Step 8: Discover Tables

For each selected site, list the available lists and document libraries:

npx power-apps list-tables -a sharepointonline -c <connection-id> -d '<site-url>'

If `npx power-apps list-tables` fails or returns no results:

  • Confirm the site URL from Step 7 is exact (copy from the output — do not retype).
  • If still empty, the user may not have access to that site's lists. Ask them to verify permissions in SharePoint.
  • Any other non-zero exit: Report the exact error output. STOP.

Present the tables to the user and ask which ones they want to add. Suggest tables that look relevant to their use case (based on memory bank context or the user's stated requirements). If lists were created in Step 5, they should appear here.

Step 9: Add Connector

SharePoint is a tabular datasource -- requires -c (connection ID), -d (site URL), and -t (list name):

npx power-apps add-data-source -a sharepointonline -c <connection-id> -d '<site-url>' -t '<table-name>'

Run the command for each list or library the user selected. The -d (dataset) is the SharePoint site URL from Step 7, -t (table) is the list/library name from Step 8.

Step 10: Configure

Read [sharepoint-reference.md](./references/sharepoint-reference.md) before writing any SharePoint code -- column encoding, choice fields, and lookups have critical gotchas.

Common operations:

// Get items from a SharePoint list
const items = await SharePointOnlineService.GetItems({
  dataset: "https://contoso.sharepoint.com/sites/your-site",
  table: "Your List Name"
});

// Create a new list item
await SharePointOnlineService.PostItem({
  dataset: "https://contoso.sharepoint.com/sites/your-site",
  table: "Your List Name",
  item: {
    Title: "New Item",
    Description: "Item description",
    Status: "Active"
  }
});

// Get files from a document library
const files = await SharePointOnlineService.ListFolder({
  dataset: "https://contoso.sharepoint.com/sites/your-site",
  id: "Shared Documents" // Library name or folder ID
});

// Get file content
const content = await SharePointOnlineService.GetFileContent({
  dataset: "https://contoso.sharepoint.com/sites/your-site",
  id: "file-server-relative-url"
});

Key points:

  • dataset is always the full SharePoint site URL
  • table is the list display name for list operations
  • List column names in the API may differ from display names (spaces become _x0020_, special chars encoded)
  • Document library operations use folder/file IDs or server-relative URLs
  • Choice columns use string values, not integer picklist codes (unlike Dataverse)

Use Grep to find specific methods in src/generated/services/SharePointOnlineService.ts (generated files can be very large -- see connector-reference.md).

Step 11: Build

npm run build

Fix TypeScript errors before proceeding. Do NOT deploy yet.

Step 12: Update Memory Bank

Update memory-bank.md with: connector added, site URL, lists/libraries configured (or created), build status.

Related skills

FAQ

How do I find the SharePoint connection ID?

Run the list-connections skill and locate the SharePoint Online connection; create one in make.powerapps.com if missing.

Can this skill create new SharePoint lists?

Yes. Use Graph API auth, review existing lists for reuse, then New-SharePointListIfNotExists and column helpers with user confirmation.

What is the dataset parameter in SharePointOnlineService?

dataset is always the full SharePoint site URL; table is the list display name for list operations.

Is Add Sharepoint safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Backend & APIsintegrationsbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.