by ElevenFifty Labs
CRM

Dynamics 365 Sales integration

Spark reads opportunities, accounts and pipeline from Dynamics 365 Sales into your plan, warehouse and BI, and writes records back by alternate key where you allow it.

The connector

Category: CRM. Status: Available on all plans. How Spark connects: direct, through the Dataverse Web API with an app registered in Microsoft Entra ID and an application user whose security role covers the tables you choose.

What you can do with Dynamics 365 Sales in Spark

Read Dynamics 365 Sales tables on a schedule, map stages, territories and products to plan lists, and send pipeline and bookings to a planning tool, warehouse or BI. Create or update records back in Dataverse by alternate key, such as accounts from the ERP's customer list.

Spark reads 19 kinds of data from Dynamics 365 Sales:

  • Dynamics 365 accounts record, with every column you can read
  • Dynamics 365 contacts record, with every column you can read
  • Dynamics 365 leads record, with every column you can read
  • Dynamics 365 opportunities record, with every column you can read
  • Dynamics 365 opportunityproducts record, with every column you can read
  • Dynamics 365 products record, with every column you can read
  • Dynamics 365 pricelevels record, with every column you can read
  • Dynamics 365 quotes record, with every column you can read
  • Dynamics 365 quotedetails record, with every column you can read
  • Dynamics 365 salesorders record, with every column you can read
  • Dynamics 365 salesorderdetails record, with every column you can read
  • Dynamics 365 invoices record, with every column you can read
  • Dynamics 365 invoicedetails record, with every column you can read
  • Dynamics 365 systemusers record, with every column you can read
  • Dynamics 365 businessunits record, with every column you can read
  • Dynamics 365 teams record, with every column you can read
  • Dynamics 365 transactioncurrencies record, with every column you can read
  • Dynamics 365 campaigns record, with every column you can read
  • Every row of any Dataverse table, by its entity set name

What Spark writes to Dynamics 365 Sales

Writes only happen when you tick the permission as you add the Spark. Leave them unticked for a read-only connection.

  • Creates or updates rows of any table, 1 per row, matched on an alternate key. Every other column is set as the column of the same logical name.

Common use cases for Dynamics 365 Sales data, and why each matters

Pipeline into the plan

Open opportunities by stage, segment and close month go into the plan nightly, so the sales forecast and finance's forecast start from the same numbers.

Bookings into finance

Closed-won opportunities flow to the plan and the ERP's customer list, tied out to the CRM total after every load.

Pipeline history

A dated snapshot of the pipeline lands in the warehouse each day, so you can see how the forecast moved and why.

Customers back to the CRM

Billing status and customer IDs from the ERP are written back to accounts by alternate key, so sales sees who is live.

Why it's hard without Spark

Dataverse exports are easy for one view and hard to repeat: every report needs the right filters, option sets come out as numbers, and a new stage or territory breaks the spreadsheet that feeds the plan. Entra app registrations and security roles also need IT. Spark sends IT a setup request that explains the access, maps option sets and stages in a table RevOps owns, and stops a run with a clear reason when a new stage has no mapping.

How Spark handles Dynamics 365 Sales data

  • Spark does not store the business data it moves: rows pass through memory during a run.
  • Each customer has its own isolated tenant.
  • Credentials are sealed in your company's own vault, never shown again or logged.
  • Anything that writes to a system needs the permission ticked when the Spark is added.

More on the Spark trust center.

Teams that use it

Revenue operations and Finance and FP&A. See Spark for revenue operations.

Questions

How does Spark connect to Dynamics 365 Sales?

An app client ID and secret. You need a Microsoft Entra admin and a Dynamics 365 (Power Platform) admin.

Can Spark write to Dynamics 365 Sales?

Yes, when you allow it. Creates or updates rows of any table, 1 per row, matched on an alternate key. Every other column is set as the column of the same logical name.

Are there API limits?

Dataverse limits requests per user over a 5-minute window. Spark batches requests and backs off when it hits the limit.

Where are the credentials kept?

Sealed in your company's own vault in your isolated tenant. Spark never shows them again or writes them to logs.

Connection essentials

  • Method: An app client ID and secret.
  • What you need: A Microsoft Entra admin; A Dynamics 365 (Power Platform) admin
  • What Spark asks for: Directory (tenant) ID; Environment address; Application (client) ID; Client secret
  • Vendor documentation: learn.microsoft.com
  • Change detection: records modified since the last run, by modified-on date
  • Limits to know: Dataverse allows 6,000 requests per user in 5 minutes, so Spark batches and backs off

Set it up in 3 steps

  1. In Microsoft Entra ID, register an app named Spark and create a client secret. Copy the directory (tenant) ID, application (client) ID and secret.
  2. In the Power Platform admin center, open the environment, Settings, Users, Application users, add the app, and give it a read-only security role.
  3. In Spark, add a Dynamics 365 Sales Spark and enter the details. Spark keeps them in your company's own vault and reads a small list to check they work.

Optional permissions

Ticked when you add the Spark, and off unless marked default.

  • Create and update rows: The application user's security role must allow create and write on the tables Spark will write.

Everything Spark reads from Dynamics 365 Sales

Each record with every column the application user can read:

  • Accounts
  • Contacts
  • Leads
  • Opportunities
  • Opportunity products
  • Products
  • Price lists
  • Quotes
  • Quote lines
  • Orders
  • Order lines
  • Invoices
  • Invoice lines
  • Users
  • Business units
  • Teams
  • Currencies
  • Campaigns
  • Every row of any Dataverse table, by its entity set name

What Spark writes

  • Creates or updates rows of any table, 1 per row, matched on an alternate key. Every other column is set as the column of the same logical name.

Example Circuit: Dynamics 365 Sales pipeline into Pigment

Each mapping is written in Excel syntax, so finance can read and change it.

  • Close month: =TEXT([estimatedclosedate],"yyyy-mm"), the plan's month
  • Stage: =XLOOKUP([salesstage],StageMap[D365],StageMap[Plan]), the plan stage
  • Segment: =XLOOKUP([territoryid],TerrMap[D365],TerrMap[Segment],"Unassigned"), the plan segment
  • Weighted value: =[estimatedvalue]*[closeprobability]/100, the weighted pipeline

Checks to set on this feed

  • Pipeline total tied out against the CRM after every load
  • Fail the run if a stage or territory has no mapping
  • Freshness: alert if no opportunities change on a business day

How setup works

  1. Start a Spark. Sign in or paste a key. Spark checks the access the key grants and warns before it expires. If someone else owns the system, Spark sends them a setup request with the security context they need.
  2. Build a Circuit with Ask Spark. Describe the feed in plain English. Ask Spark drafts the mapping in Excel syntax and waits for your approval.
  3. Let it run. On a schedule, when a file lands, or when the source changes, with checks before anything is written and alerts by email, Slack, Teams or the Spark mobile app.

Security

Each customer runs in its own isolated tenant with its own encryption key and credential vault. Business data passes through memory during a run and is never stored. Writes to systems of record need their own permission, and ERP journals arrive as drafts by default. See Spark security.

See it with your own systems

Book a 30-minute demo built around the systems you use. Spark starts at $5,000 a year, with every connector on every plan. See pricing, security and the connector library.