Skip to content

Dynamics 365

Dynamics 365

Dynamics 365 from Microsoft combines CRM, ERP, and productivity apps to streamline sales, marketing, customer service, and operations in one integrated platform. With the integration in SquadOS, your agents can create and update accounts, contacts, leads, opportunities, invoices, cases, and sales orders directly in Dynamics CRM via the Web API — automating end-to-end business workflows without manual intervention.

This tool uses OAuth 2.0 (OAUTH2) to connect.

You will need to authorize access to your Microsoft/Dynamics 365 account through the OAuth flow managed by Composio. No manual API key is required — Composio handles token acquisition and renewal.

  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Dynamics 365.
  3. Click the card to open the details modal and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you authorize access to your Microsoft account with the required Dynamics 365 permissions.
  5. Once done, you’re sent back to SquadOS with the account connected and the tool available for your agents. (Connection-flow details in Organization Tools.)

DYNAMICS365_DYNAMICSCRM_CREATE_ACCOUNT

Creates a new account entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
namestringNoThe name of the new account to be created.
revenuenumberNoThe revenue associated with the account.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
descriptionstringNoA description of the account.
creditonholdbooleanNoIndicates whether the account is on credit hold.
accountcategorycodeintegerNoThe category code of the account.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_CREATE_CASE

Creates a new case (incident) entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
titlestringNoThe subject or title of the case.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
account_idstringNoA reference to the related account. Format: ‘/accounts(GUID)‘
contact_idstringNoA reference to the related contact. Format: ‘/contacts(GUID)‘
descriptionstringNoA detailed description of the issue or inquiry.
prioritycodeintegerNoThe priority level of the case (e.g., 1 for Low, 2 for Normal, 3 for High).
caseorigincodeintegerNoThe source of the case. Valid values: 1 (Phone), 2 (Email), 3 (Web).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_CREATE_CONTACT

Creates a new contact entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
jobtitlestringNoThe job title of the contact.
lastnamestringNoThe last name of the contact.
firstnamestringNoThe first name of the contact.
telephone1stringNoThe primary telephone number of the contact.
mobilephonestringNoThe mobile phone number of the contact.
address1_citystringNoThe city of the contact’s address.
emailaddress1stringNoThe primary email address of the contact.
address1_countrystringNoThe country of the contact’s address.
address1_postalcodestringNoThe postal code of the contact’s address.
address1_stateorprovincestringNoThe state or province of the contact’s address.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_CREATE_INVOICE

Creates a new invoice entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
namestringNoThe name or number of the invoice.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
account_idstringNoA reference to the related account. Format: ‘/accounts(GUID)‘
currency_idstringNoA reference to the currency for the transaction. Format: ‘/transactioncurrencies(GUID)‘
descriptionstringNoA description of the invoice.
price_level_idstringNoA reference to the price list. Format: ‘/pricelevels(GUID)‘
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_CREATE_LEAD

Creates a new lead entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
subjectstringNoA brief description or title for the lead.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user. Set explicitly when creating leads on behalf of other users in multi-user or automated workflows.
lastnamestringNoThe last name of the lead.
firstnamestringNoThe first name of the lead.
telephone1stringNoThe primary telephone number of the lead.
companynamestringNoThe company name associated with the lead. May be enforced as required by some CRM configurations; omitting it can cause the request to be rejected.
emailaddress1stringNoThe primary email address of the lead.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_CREATE_OPPORTUNITY

Creates a new opportunity entity record in Dynamics CRM using the Web API. Some CRM configurations enforce estimatedclosedate and a transaction currency at the server level even though they are schema-optional; omitting them may cause the request to be rejected.

NameTypeRequiredDescription
namestringYesThe name or title of the opportunity. This is a required field.
descriptionstringNoA brief description of the opportunity.
estimatedvaluenumberNoThe anticipated revenue from the opportunity.
estimatedclosedatestringNoThe expected close date of the opportunity in ‘YYYY-MM-DD’ format.
customer_account_idstringNoThe GUID of the related account (without curly braces). Optional.
customer_contact_idstringNoThe GUID of the related contact (without curly braces). Optional.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_CREATE_SALES_ORDER

Creates a new sales order entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
namestringNoThe name of the sales order.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
account_idstringNoA reference to the related account. Format: ‘/accounts(GUID)‘
currency_idstringNoA reference to the currency for the transaction. Format: ‘/transactioncurrencies(GUID)‘
descriptionstringNoA description of the sales order.
price_level_idstringNoA reference to the price list. Format: ‘/pricelevels(GUID)‘
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_GET_A_INVOICE

Retrieves the data of a specific invoice in Dynamics CRM by its identifier.

NameTypeRequiredDescription
invoice_idstringYesThe ID of the invoice to retrieve.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_GET_A_LEAD

Retrieves the data of a specific lead in Dynamics CRM by its identifier.

NameTypeRequiredDescription
lead_idstringYesThe ID of the lead to retrieve (GUID format). Use the value exactly as returned by Dynamics CRM tools — do not reformat or truncate.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_GET_ALL_LEADS

Returns a list of leads from Dynamics CRM with support for pagination, filters, and sorting.

NameTypeRequiredDescription
topintegerNoMaximum number of leads to return.
skipintegerNoNumber of leads to skip for pagination.
filterstringNoOData filter criteria for leads (e.g., contains(fullname,'John')). Date filters require ISO 8601 format (e.g., createdon gt 2024-01-01T00:00:00Z).
selectstringNoComma-separated list of fields to return (e.g., fullname,emailaddress1).
orderbystringNoField to order by (e.g., createdon desc).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_UPDATE_CASE

Updates an existing case (incident) entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
titlestringNoThe subject or title of the case.
case_idstringYesThe unique identifier (GUID) of the case to update.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
statuscodeintegerNoThe current status of the case (e.g., 1 for Active, 2 for In Progress, 3 for Resolved).
descriptionstringNoA detailed description of the issue or inquiry.
prioritycodeintegerNoThe priority level of the case (e.g., 1 for High, 2 for Normal, 3 for Low).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_UPDATE_INVOICE

Updates an existing invoice entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
namestringNoThe updated name or number of the invoice.
duedatestringNoThe updated due date for the invoice in YYYY-MM-DD format.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
invoice_idstringYesThe unique identifier (GUID) of the invoice to update.
descriptionstringNoThe updated description of the invoice.
totalamountnumberNoThe updated total amount for the invoice.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_UPDATE_LEAD

Updates an existing lead entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
lead_idstringYesThe unique identifier (GUID) of the lead to update. Must be passed exactly as returned by Dynamics CRM lookup tools — no added braces or modified dash formatting.
subjectstringNoA brief description or title for the lead.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
lastnamestringNoLast name of the lead.
firstnamestringNoFirst name of the lead.
telephone1stringNoPrimary phone number of the lead.
companynamestringNoName of the company associated with the lead.
emailaddress1stringNoPrimary email address of the lead.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_UPDATE_OPPORTUNITY

Updates an existing opportunity entity record in Dynamics CRM using the Web API. Some updates may be rejected if required relational fields (e.g., transactioncurrency) are absent from the record, even though they are not exposed as explicit parameters.

NameTypeRequiredDescription
namestringNoThe name or title of the opportunity.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
descriptionstringNoA brief description of the opportunity.
estimatedvaluenumberNoThe anticipated revenue from the opportunity.
opportunity_idstringYesThe unique identifier (GUID) of the opportunity to update. Use the GUID exactly as returned by CRM lookup or list tools — reformatting the value will cause the update to fail.
salesstagecodeintegerNoThe current sales stage (e.g., 1 for Qualify, 2 for Develop, 3 for Propose).
estimatedclosedatestringNoThe expected close date of the opportunity in ‘YYYY-MM-DD’ format.
opportunityratingcodeintegerNoThe rating of the opportunity (e.g., 1 for Cold, 2 for Warm, 3 for Hot).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_DYNAMICSCRM_UPDATE_SALES_ORDER

Updates an existing sales order entity record in Dynamics CRM using the Web API.

NameTypeRequiredDescription
namestringNoThe updated name of the sales order.
user_idstringNoThe user’s ID or ‘me’ for the authenticated user.
descriptionstringNoThe updated description of the sales order.
freightamountnumberNoThe updated freight or shipping cost for the order.
salesorder_idstringYesThe unique identifier (GUID) of the sales order to update.
discountamountnumberNoThe updated discount amount for the order.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

DYNAMICS365_GET_ALL_INVOICES_ACTION

Returns a list of invoices from Dynamics CRM with support for pagination, filters, and sorting.

NameTypeRequiredDescription
topintegerNoMaximum number of invoices to return.
skipintegerNoNumber of invoices to skip for pagination.
filterstringNoOData filter criteria for invoices (e.g., contains(customerName,'Contoso')).
selectstringNoComma-separated list of fields to return (e.g., invoiceid,name,totalamount).
orderbystringNoField to order by (e.g., createdon desc).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.