View as Markdown
Microsoft Dynamics 365 Sales icon

Microsoft Dynamics 365 Sales ACTION

Update Account

Update an existing account; only the fields you supply are sent. See the account entity reference for the full list of updatable fields. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Microsoft Dynamics 365 Sales account once, then configure and run Update Account from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "microsoft_dynamics_365_sales-update-account",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    microsoft_dynamics_365_sales: { authProvisionId: "apn_xxxxxxx" },
    accountId: "Account ID",
    name: "Account Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Account inputs
Property Type Description
accountId Account ID string
Identifier of an account
Required Dynamic
name Account Name string
Company or business name of the account
Optional
telephone1 Main Phone string
Main phone number for the account
Optional
emailaddress1 Email string
Primary email address for the account
Optional
websiteurl Website string
Website URL for the account (for example https://www.example.com)
Optional
fax Fax string
Fax number for the account
Optional
description Description string
Additional information describing the account
Optional
numberofemployees Number of Employees integer
Number of employees at the account
Optional
revenue Annual Revenue string
Annual revenue for the account, in the base currency (numeric, for example 1500000)
Optional
address1Line1 Address: Street 1 string
First line of the primary address
Optional
address1City Address: City string
City of the primary address
Optional
address1Stateorprovince Address: State/Province string
State or province of the primary address
Optional
address1Postalcode Address: ZIP/Postal Code string
ZIP or postal code of the primary address
Optional
address1Country Address: Country/Region string
Country or region of the primary address
Optional
primaryContactId Primary Contact string
Contact to set as the primary contact for the account. Provide the contact's GUID (for example 00000000-0000-0000-0000-000000000001) — the contactid value copied from the contact record in Dynamics or returned by the Find Contact action.
Optional Dynamic
additionalProperties Additional Fields object
Any other account attributes to update, keyed by their Dynamics logical name (for example { "industrycode": 1 }). Values are sent as-is. Use attribute@odata.bind keys to set lookups. See the account entity reference
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
microsoft_dynamics_365_sales-update-account
Version
0.0.2
App
Microsoft Dynamics 365 Sales
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes