No slash command · from erpl-odata
Reads and writes Microsoft 365 data from DuckDB via Microsoft Graph: Excel workbooks, SharePoint lists, Planner tasks, Outlook mail/calendars/contacts, Teams channels/messages, and Entra ID directory objects.
Ships in erpl-odata. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub datazoode/erpl-odata --plugin erpl-odataExtension: erpl_odata v2026.11.25 | DuckDB: v2.0.1 / v1.5.6
All functions here call Microsoft Graph with a microsoft_graph secret (see
erpl-odata-setup). Every function accepts secret := 'name'; without it the first
microsoft_graph secret is used.
| Task | Reference file |
|---|---|
| Read Excel tables and ranges, append or delete rows, attach a workbook | references/excel.md |
| Read, filter and write SharePoint lists, attach a site | references/sharepoint-lists.md |
| Planner plans, buckets and tasks; bulk-create tasks from a query | references/planner.md |
| Outlook mail metadata, calendars, contacts; Teams channels and messages | references/outlook-teams.md |
| Entra ID users, groups, devices, sign-in audits | references/entra-id.md |
Read the reference for the task before writing SQL; the parameter names differ per area.
App-only vs delegated. A client_credentials secret acts as the app: mail,
calendar and Teams functions then need user := 'upn-or-guid', because there is no
/me. A PROVIDER authorization_code secret acts as the signed-in user, so omit user
to get /me/....
Permissions are per area and need admin consent. Application permissions on the app registration, granted by an admin:
| Area | Read | Write |
|---|---|---|
| Excel | Files.ReadWrite.All (the Excel service requires write even to read) | same |
| SharePoint lists, sites, drives | Sites.Read.All | Sites.ReadWrite.All |
| Planner | Tasks.Read.All, Group.Read.All | Tasks.ReadWrite.All |
| Outlook | Mail.Read, Calendars.Read, Contacts.Read | n/a |
| Teams | Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, TeamMember.Read.All | n/a |
| Entra ID | User.Read.All, Group.Read.All, Device.Read.All; sign-ins add AuditLog.Read.All and Entra ID P1/P2 | n/a |
A 403 from Graph almost always means a missing permission or missing consent.
Names, URLs and IDs are interchangeable for sites, lists and drives: 'Finance',
'https://contoso.sharepoint.com/sites/Finance' and the raw GUID all resolve. Names are
resolved with an extra call; use IDs in hot loops.
Write functions are one-shot per bound statement. graph_excel_add_rows and the
create functions write when the statement runs and return what they created. Re-running
the statement writes again, so do not put them in a view.
Scalar vs table writers. graph_sharepoint_create_item and
graph_planner_create_task are table functions whose arguments must be constants:
no LATERAL over a query. For bulk work use INSERT into an attached list, COPY ... TO,
or generate one statement per row (see references/planner.md).
graph_sharepoint_update_item and graph_sharepoint_delete_item are scalar,
return BOOLEAN, and take the secret as the last positional argument, not secret :=.
Outlook reads metadata only. graph_outlook_emails returns subject, sender, dates,
flags; no message bodies.
duckdb-sharepoint is a separate extension. For SharePoint and OneDrive files as a
filesystem (sharepoint:// paths, globbing, read_csv / read_parquet on documents,
file versions, change feeds), use the duckdb-sharepoint extension and its
sharepoint-files skill. erpl_odata covers lists, Excel tables through the Graph
workbook API, and the rest of M365.
CREATE SECRET ms_graph (TYPE microsoft_graph, TENANT_ID '...', CLIENT_ID '...', CLIENT_SECRET '...');
-- 1. Read a budget table maintained by the finance team in Excel
CREATE OR REPLACE TABLE budget AS
SELECT * FROM graph_excel_read('Budget 2025.xlsx', 'BudgetTable',
site := 'Finance', drive := 'Documents');
-- 2. Compare with actuals from the ERP (for example landed with erpl-odata-sap-gateway)
CREATE OR REPLACE TABLE variance AS
SELECT b.cost_center, b.amount AS budget, a.amount AS actual, a.amount - b.amount AS delta
FROM budget b JOIN actuals a USING (cost_center);
-- 3. Raise a SharePoint list item per cost center over budget
ATTACH 'Finance' AS finance_sp (TYPE sharepoint_lists, SECRET 'ms_graph');
INSERT INTO finance_sp.main."Budget Alerts" (Title, CostCenter, Delta)
SELECT 'Over budget: ' || cost_center, cost_center, delta FROM variance WHERE delta > 0;
See also: erpl-odata-setup (Graph secret providers), erpl-odata-production
(unattended tokens, error playbook), erpl-odata-dynamics-and-delta-sharing (Business
Central and Dataverse, which use their own secret types). For PII in directory or mail
exports, the anofox-tabular plugin's anofox-tabular-pii skill detects and masks it.
Reference docs:
README.md (Microsoft 365 & Dynamics 365)8 skills in this plugin
/erpl-odata-dynamics-and-delta-sharingReading Microsoft Dynamics 365 Business Central (bc_show_companies, bc_show_entities, bc_describe, bc_read with company and expand, ATTACH TYPE business_central), Dataverse / Dynamics 365 CRM (crm_show_entities, crm_describe, crm_read) and Delta Sharing shares from Databricks, SAP Business Data Cloud and other providers (delta_share_show_shares, delta_share_show_schemas, delta_share_show_tables, delta_share_scan, profile files) into DuckDB with erpl_odata. Use when the user wants ERP data from Business Central, CRM records from Dataverse, or a table shared over the Delta Sharing protocol.
/erpl-odata-odata-and-restQuerying any OData v2/v4 service and any REST/JSON API from DuckDB SQL with erpl_odata: odata_read (top, skip, expand, count, max_page_size, strict_typing), automatic v2/v4 detection, what WHERE / SELECT / LIMIT push down as $filter / $select / $top, odata_describe, odata_attach and ATTACH ... (TYPE odata), plus http_get / http_head / http_post / http_put / http_patch / http_delete with headers, auth, timeouts, JSON bodies and unpacking JSON responses. Use when the user wants to explore or extract an OData service that is not SAP-specific, call a REST endpoint, page through an API, or turn a JSON response into a table.
/erpl-odata-productionRunning erpl_odata extractions unattended and operating them: job scripts for the DuckDB CLI, persistent DuckDB files or DuckLake as the landing zone, idempotent snapshot and delta (ODP) loads, scheduling with cron or systemd without overlapping runs, unattended credentials (client_credentials, secrets from environment variables, persistent secrets), run logs and monitoring, file tracing (erpl_trace_* settings, PRAGMA erpl_trace_status), and an error-to-fix playbook (401/403, TLS, 404 on /sap/opu, 202 polling, RODPS_REPL_ODP_OPEN, custom service URL guard, NULLs from type conversion). Also how to hand extracted data to other DataZoo tools: flapi to serve it as REST/MCP, anofox-tabular for data-quality gates, anofox-forecast for forecasting and anofox-visualization for dashboards. Use when the user wants to schedule or productionise an extraction, debug a failing job, or build an end-to-end pipeline from SAP or Microsoft data to an API, forecast or dashboard.
/erpl-odata-sap-datasphere-sacPulling SAP Datasphere and SAP Analytics Cloud (SAC) data into DuckDB with erpl_odata: the datasphere secret (oauth2 with authorization_code or client_credentials, config, file), discovery with datasphere_show_spaces, datasphere_show_assets, datasphere_describe_space and datasphere_describe_asset, reading relational assets with datasphere_read_relational and analytic models with datasphere_read_analytical (metrics, dimensions, params, top, skip), and SAC planning and analytic models with sac_read_planning_data, sac_read_analytical and sac_read_story_data using an access_token secret. Also covers what is not implemented yet (SAC discovery functions, ATTACH TYPE sac). Use when the user wants data from a Datasphere space or an SAC model, or asks how to log in to Datasphere from DuckDB.
/erpl-odata-sap-gatewayReading SAP S/4HANA and ECC data through SAP Gateway OData services with erpl_odata: discovering services with odata_sap_show (v2 catalog and v4 service groups), URL anatomy of /sap/opu/odata (v2) and /sap/opu/odata4 (v4 RAP services), basic-auth secrets scoped to the SAP host, describing and attaching a service, SAP-specific quirks (draft entity sets, Edm.DateTime, sap-client, mandatory filters), activating services (/IWFND/MAINT_SERVICE, /IWFND/V4_ADMIN, SICF), and the ABAP trial (A4H) sandbox. Use when the user wants data out of an SAP system via OData, cannot find or reach a Gateway service, or gets 403/404 from /sap/opu. For delta extraction use erpl-odata-sap-odp-replication instead.
/erpl-odata-sap-odp-replicationReplicating SAP data with full and delta loads through ODP (Operational Data Provisioning) OData services with erpl_odata: odp_odata_show to find ODP-enabled entity sets, odp_odata_read (secret, force_full_load, import_delta_token, max_page_size) as a change stream with ODQ_CHANGEMODE and ODQ_ENTITYCNTR, the correct DELETE + INSERT merge into a persistent DuckDB table, subscription state (odp_odata_list_subscriptions, PRAGMA odp_odata_remove_subscription), ODQMON cleanup, HTTP 202 long-running extractions, why a delta never arrives (CDS changeDataCapture vs byElement, Preference-Applied), and provisioning an ODP service headlessly with erpl-adt. Use when the user wants incremental or CDC loads from SAP extractors (0D_*, 2LIS_*), BW InfoProviders or CDS extraction views, or a delta load returns everything again.
Other plugins' skills for the same job