No slash command · from erpl-odata
Reads ERP data from Microsoft Dynamics 365 Business Central, CRM records from Dataverse/Dynamics 365 CRM, and tables shared via Delta Sharing protocol (Databricks, SAP Business Data Cloud) into DuckDB using erpl_odata extension.
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.
None: SKILL.md is the whole skill.
Extension: erpl_odata v2026.11.25 | DuckDB: v2.0.1 / v1.5.6
bc_read needs a company. Pass company := 'CRONUS DE' (the company name as
bc_show_companies() reports it, or its GUID). Without it the read fails with "No
company found with name ''".API.ReadWrite.All application permission on Dynamics 365 Business Central, and an
Microsoft Entra Applications record inside Business Central with permission sets
assigned (for example D365 READ). Without the second one every call is 401/403.SET erpl_unsafe_allow_custom_service_urls = 'I_UNDERSTAND_THIS_SENDS_TOKENS_ELSEWHERE';.
Dataverse is not gated, because its token is minted for the configured org URL.ATTACH is not implemented. ATTACH ... (TYPE delta_share) raises
"not implemented yet". Use the delta_share_* functions.CREATE SECRET bc (TYPE business_central, TENANT_ID '...', CLIENT_ID '...', CLIENT_SECRET '...',
ENVIRONMENT 'production');
SELECT id, name, displayName FROM bc_show_companies();
SELECT name, url, kind FROM bc_show_entities();
SELECT property_name, property_type, nullable, is_key FROM bc_describe('customers');
-- Columns keep the API's camelCase names. WHERE and column selection push down
SELECT number, displayName, email, balanceDue
FROM bc_read('customers', company := 'CRONUS DE')
WHERE balanceDue > 1000;
-- Lines with their header
SELECT number, customerName, salesOrderLines
FROM bc_read('salesOrders', company := 'CRONUS DE', expand := 'salesOrderLines');
Attach a company to browse it as a catalog (read-only):
ATTACH 'bc' AS cronus (TYPE business_central, COMPANY 'CRONUS DE'); -- path = secret name
SHOW TABLES FROM cronus;
SELECT * FROM cronus.customers LIMIT 10;
Column names are the API's own camelCase names (displayName, balanceDue), not snake_case.
Quote them only if you change their case. Entity names follow the Business Central API v2.0 (customers, vendors, items,
salesInvoices, generalLedgerEntries, ...). Use bc_show_entities() for the list your
environment exposes, including custom API pages.
CREATE SECRET crm (TYPE dataverse, TENANT_ID '...', CLIENT_ID '...', CLIENT_SECRET '...',
ENVIRONMENT_URL 'https://myorg.crm4.dynamics.com');
-- Raw EntityDefinitions metadata (PascalCase): LogicalName, EntitySetName, ...
SELECT LogicalName, EntitySetName FROM crm_show_entities();
SELECT attribute_name, attribute_type, nullable, is_primary FROM crm_describe('accounts');
-- WHERE pushes down; statecode 0 = active
SELECT name, emailaddress1, telephone1, revenue
FROM crm_read('accounts')
WHERE statecode = 0
ORDER BY revenue DESC;
SELECT name, primarycontactid FROM crm_read('accounts', expand := 'primarycontactid');
Use the entity set name (plural, accounts, contacts, opportunities, the
EntitySetName column of crm_show_entities()) for crm_read, as the Web API expects. Option-set columns come back as integer codes; join
them with the option-set metadata or map them in a CASE.
Profile file (from the data provider):
{
"shareCredentialsVersion": 1,
"endpoint": "https://sharing.example.com/delta-sharing/",
"bearerToken": "..."
}
SELECT share_name, share_id FROM delta_share_show_shares('/secure/profile.share');
SELECT schema_name, share FROM delta_share_show_schemas('/secure/profile.share', 'sales_share');
SELECT table_name, schema, share, table_id, description
FROM delta_share_show_tables('/secure/profile.share', 'sales_share', 'default');
-- The table itself: columns and types come from the share's Delta schema
SELECT * FROM delta_share_scan('/secure/profile.share', 'sales_share', 'default', 'orders') LIMIT 10;
CREATE TABLE orders AS
SELECT * FROM delta_share_scan('/secure/profile.share', 'sales_share', 'default', 'orders');
The profile path may be local, https://, s3:// or azure://. Remote paths go through
DuckDB's filesystem, so httpfs / azure and their secrets apply.
Public example (Databricks open datasets):
SELECT *
FROM delta_share_scan('https://databricks-datasets-oregon.s3-us-west-2.amazonaws.com/delta-sharing/share/open-datasets.share',
'delta_sharing', 'default', 'owid-covid-data')
LIMIT 5;
CREATE OR REPLACE TABLE bc_customers AS
SELECT number, displayName, email, balanceDue FROM bc_read('customers', company := 'CRONUS DE');
CREATE OR REPLACE TABLE crm_accounts AS
SELECT accountnumber, name, emailaddress1, revenue FROM crm_read('accounts') WHERE statecode = 0;
-- Accounts that exist in CRM but not in the ERP
SELECT a.* FROM crm_accounts a
ANTI JOIN bc_customers c ON lower(c.email) = lower(a.emailaddress1);
Matching master data across systems by name or address is fuzzy work; the anofox-tabular
plugin's anofox-tabular-master-data skill validates and standardises emails, phone
numbers, VAT ids and addresses first, and anofox-tabular-diff compares the two tables.
See also: erpl-odata-setup (secret types), erpl-odata-microsoft-365 (Graph APIs on the
same tenant), erpl-odata-production (scheduling, tracing, error playbook).
Reference docs:
README.md (Business Central, Dataverse, Delta Sharing)docs/TLS.md (custom service URLs)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
erpl-odata, dynamics-365, business-central, dataverse, delta-sharing, duckdb
npx claudepluginhub datazoode/erpl-odata --plugin erpl-odata8 skills in this plugin
/erpl-odata-microsoft-365Using Microsoft 365 as a data source and sink from DuckDB with erpl_odata's Microsoft Graph functions: Excel workbooks on OneDrive/SharePoint (graph_show_files, graph_excel_worksheets, graph_excel_tables, graph_excel_read, graph_excel_range, graph_excel_add_rows, graph_excel_delete_rows, ATTACH TYPE excel_workbook, COPY TO FORMAT graph_excel_table), SharePoint lists (graph_show_sites, graph_show_drives, graph_show_lists, graph_describe_list, graph_sharepoint_list_read, graph_sharepoint_create_item / update_item / delete_item, ATTACH TYPE sharepoint_lists with INSERT/UPDATE/DELETE, COPY TO FORMAT graph_sharepoint_list), Planner (plans, buckets, tasks, creating tasks from SQL), Outlook mail, calendars and contacts, Teams channels and messages, and Entra ID users, groups, devices and sign-in logs; app-only vs delegated permissions. Use when the user wants to read or write Excel or SharePoint data, push query results into a list or workbook, create Planner tasks from data, or report on M365 directory, mail or Teams activity.
/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.
Other plugins' skills for the same job