Skillshub Dynamics 365 Automation
Dynamics 365 Automation: manage CRM contacts, accounts, leads, opportunities, sales orders, invoices, and cases via the Dynamics CRM Web API
git clone https://github.com/ComeOnOliver/skillshub
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ComposioHQ/awesome-claude-skills/dynamics365-automation" ~/.claude/skills/comeonoliver-skillshub-dynamics-365-automation && rm -rf "$T"
skills/ComposioHQ/awesome-claude-skills/dynamics365-automation/SKILL.mdDynamics 365 Automation
Automate Microsoft Dynamics 365 CRM operations including creating and updating contacts, accounts, leads, opportunities, sales orders, invoices, and support cases.
Toolkit docs: composio.dev/toolkits/dynamics365
Setup
This skill requires the Rube MCP server connected at
https://rube.app/mcp.
Before executing any tools, ensure an active connection exists for the
dynamics365 toolkit. If no connection is active, initiate one via RUBE_MANAGE_CONNECTIONS.
Core Workflows
1. Manage Leads
Create, update, retrieve, and list lead records.
Tools:
-- Create a new leadDYNAMICS365_DYNAMICSCRM_CREATE_LEAD
-- Update an existing leadDYNAMICS365_DYNAMICSCRM_UPDATE_LEAD
-- Retrieve a lead by GUIDDYNAMICS365_DYNAMICSCRM_GET_A_LEAD
-- List/filter all leadsDYNAMICS365_DYNAMICSCRM_GET_ALL_LEADS
Key Parameters for
:DYNAMICS365_DYNAMICSCRM_CREATE_LEAD
-- First name of the leadfirstname
-- Last name of the leadlastname
-- Primary email addressemailaddress1
-- Primary phone numbertelephone1
-- Associated company namecompanyname
-- Brief title/descriptionsubject
Key Parameters for
:DYNAMICS365_DYNAMICSCRM_GET_ALL_LEADS
-- OData filter, e.g.,filter"contains(fullname,'John')"
-- Fields to return, e.g.,select"fullname,emailaddress1"
-- Sort expression, e.g.,orderby"createdon desc"
-- Max number of resultstop
Example:
Tool: DYNAMICS365_DYNAMICSCRM_CREATE_LEAD Arguments: firstname: "Jane" lastname: "Smith" emailaddress1: "jane.smith@example.com" companyname: "Acme Corp" subject: "Interested in Enterprise plan"
2. Manage Accounts
Create and organize account (company) records in the CRM.
Tool:
DYNAMICS365_DYNAMICSCRM_CREATE_ACCOUNT
Key Parameters:
-- Account/company namename
-- Description of the accountdescription
-- Revenue amount (number)revenue
-- Category code (integer, default: 1)accountcategorycode
-- Whether account is on credit hold (boolean)creditonhold
Example:
Tool: DYNAMICS365_DYNAMICSCRM_CREATE_ACCOUNT Arguments: name: "Contoso Ltd" description: "Strategic partner for cloud services" revenue: 5000000 creditonhold: false
3. Manage Contacts
Create detailed contact records with address and phone information.
Tool:
DYNAMICS365_DYNAMICSCRM_CREATE_CONTACT
Key Parameters:
,firstname
-- Contact namelastname
-- Primary emailemailaddress1
-- Primary phonetelephone1
-- Mobile phonemobilephone
-- Job titlejobtitle
,address1_city
,address1_stateorprovince
,address1_postalcode
-- Address fieldsaddress1_country
Example:
Tool: DYNAMICS365_DYNAMICSCRM_CREATE_CONTACT Arguments: firstname: "Bob" lastname: "Johnson" emailaddress1: "bob.johnson@example.com" jobtitle: "VP of Engineering" address1_city: "Seattle" address1_stateorprovince: "WA"
4. Manage Opportunities
Create and update sales opportunities with estimated values and close dates.
Tools:
-- Create a new opportunityDYNAMICS365_DYNAMICSCRM_CREATE_OPPORTUNITY
-- Update an existing opportunityDYNAMICS365_DYNAMICSCRM_UPDATE_OPPORTUNITY
Key Parameters for
:DYNAMICS365_DYNAMICSCRM_CREATE_OPPORTUNITY
(required) -- Opportunity titlename
-- Brief descriptiondescription
-- Anticipated revenue (number)estimatedvalue
-- Expected close date inestimatedclosedate
formatYYYY-MM-DD
-- GUID of the related account (no curly braces)customer_account_id
-- GUID of the related contact (no curly braces)customer_contact_id
Key Parameters for
:DYNAMICS365_DYNAMICSCRM_UPDATE_OPPORTUNITY
(required) -- GUID of the opportunityopportunity_id
-- 1 (Cold), 2 (Warm), 3 (Hot)opportunityratingcode
-- 1 (Qualify), 2 (Develop), 3 (Propose)salesstagecode
Example:
Tool: DYNAMICS365_DYNAMICSCRM_CREATE_OPPORTUNITY Arguments: name: "Enterprise Cloud Migration" estimatedvalue: 250000 estimatedclosedate: "2026-06-30" description: "Full cloud migration project for Contoso"
5. Manage Sales Orders and Invoices
Create and update sales orders; generate invoices for billing.
Tools:
-- Create a new sales orderDYNAMICS365_DYNAMICSCRM_CREATE_SALES_ORDER
-- Update an existing sales orderDYNAMICS365_DYNAMICSCRM_UPDATE_SALES_ORDER
-- Create a new invoiceDYNAMICS365_DYNAMICSCRM_CREATE_INVOICE
Key Parameters for
:DYNAMICS365_DYNAMICSCRM_CREATE_SALES_ORDER
-- Sales order namename
-- Descriptiondescription
-- Reference to account, format:account_id"/accounts(GUID)"
-- Currency reference, format:currency_id"/transactioncurrencies(GUID)"
-- Price list reference, format:price_level_id"/pricelevels(GUID)"
Key Parameters for
:DYNAMICS365_DYNAMICSCRM_UPDATE_SALES_ORDER
(required) -- GUID of the sales ordersalesorder_id
-- Updated namename
-- Updated discountdiscountamount
-- Updated shipping costfreightamount
Key Parameters for
:DYNAMICS365_DYNAMICSCRM_CREATE_INVOICE
-- Invoice name/number, e.g.,name"Invoice #12345"
-- Invoice descriptiondescription
-- Related account referenceaccount_id
-- Currency referencecurrency_id
-- Price list referenceprice_level_id
6. Create Support Cases
Create incident/case records for customer support tracking.
Tool:
DYNAMICS365_DYNAMICSCRM_CREATE_CASE
Key Parameters:
-- Subject/title of the casetitle
-- Detailed descriptiondescription
-- 1 (Low), 2 (Normal), 3 (High)prioritycode
-- 1 (Phone), 2 (Email), 3 (Web)caseorigincode
-- Related account, format:account_id"/accounts(GUID)"
-- Related contact, format:contact_id"/contacts(GUID)"
Example:
Tool: DYNAMICS365_DYNAMICSCRM_CREATE_CASE Arguments: title: "Login issue reported by customer" description: "Customer unable to access portal since Feb 10" prioritycode: 3 caseorigincode: 2
Known Pitfalls
| Pitfall | Detail |
|---|---|
| GUID format | All entity IDs are GUIDs (e.g., ). Do not include curly braces for opportunity/contact references. |
| Reference format | Related entity references use the format (e.g., ). Missing the leading slash or parentheses causes errors. |
| OData filter syntax | Use Dynamics 365 OData syntax for (e.g., ). Incorrect syntax returns empty or error responses. |
| user_id default | Most tools default to for the authenticated user. Override only when acting on behalf of another user. |
| Required fields | requires . Other create tools have no strict required fields but will create empty records without data. |
Quick Reference
| Tool Slug | Description |
|---|---|
| Create a new lead record |
| Update an existing lead |
| Retrieve a lead by GUID |
| List/filter all leads |
| Create a new account |
| Create a new contact |
| Create a new opportunity |
| Update an existing opportunity |
| Create a new sales order |
| Update an existing sales order |
| Create a new invoice |
| Create a support case/incident |
Powered by Composio