Skip to content

Dataset

Dynamics 365 Sales record datasets for AI training

A Dynamics 365 dataset is a collection of one company's Dynamics 365 Sales records as stored in Dataverse: account, contact, lead and opportunity rows, opportunity products, quotes, orders and invoices, the phone call, email, appointment and task activities recorded against them, and the opportunityclose activity written when each deal was won or lost. SourceX sources it to a buyer's spec from established businesses that run Dynamics 365 Sales. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One Dynamics 365 Sales environment's Dataverse tables for accounts, leads, opportunities, quotes and orders, with activities and metadata
Typical systems
Dynamics 365 Sales, Professional or Enterprise, on Dataverse, with custom columns and tables; Customer Service, Field Service, marketing and finance and operations tables only on request
Typical history
Specified by the buyer; change history only from the date auditing or an append-only export began
Modality
Structured table rows, activity subjects and descriptions, email bodies as HTML, note text
Delivery formats
Agreed per order; CSV or Parquet per table under Dataverse logical names, with choice labels and lookup targets as metadata files
Preparation
Accounts, contacts and users pseudonymized, one key per row GUID; names and contact details replaced in activity text, email bodies and notes
Licensing
Permitted use agreed per license; scoped by table, business unit and date range
Availability
Sourced to your spec from businesses that run Dynamics 365 Sales; supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
opportunity_keystringPseudonym of opportunityid, the GUID that opportunityproduct, quote, opportunityclose and activity rows refer to.
opportunityobjectColumns of the opportunity row: estimatedvalue, estimatedclosedate, closeprobability, actualvalue, actualclosedate and custom columns.
state_and_statusobjectThe opportunity's statecode and statuscode as stored integers, with their labels from the environment's metadata.
process_stageobjectThe business process flow position from the opportunitysalesprocess row: activestageid resolved to its processstage name, activestagestartedon, and traversedpath as an ordered list of stages.
customerobjectThe polymorphic customerid lookup resolved to a pseudonymous account or contact, with the account's industrycode and territory.
originating_leadobjectThe lead row named in originatingleadid: leadsourcecode, leadqualitycode and the dates it was created and qualified.
line_itemsarrayopportunityproduct rows: catalog product or write-in description, quantity, priceperunit, manualdiscountamount and extendedamount.
close_activityarrayopportunityclose rows: actualrevenue, actualend, the competitor lookup, the state and status reason closed with, and the description typed at close.
activitiesarrayactivitypointer rows whose regardingobjectid is this opportunity, its customer or its quotes: activitytypecode, subject, times and state.
activities[].partiesarrayactivityparty rows for the activity: participationtypemask as code and label, and the party as a pseudonymous contact, account, lead or user, with addressused removed.
activities[].detailobjectType-specific columns from phonecall, email, appointment or task, such as directioncode and the email description.
quotes_and_ordersarrayquote rows with revisionnumber, and the salesorder and invoice rows created from them, with state and totals.
audit_trailarrayAudit history for the opportunity where auditing was on, read through Dataverse's audit messages: column, old value, new value and time.
ownershipobjectownerid resolved to a systemuser or team pseudonym, the owning business unit, and createdon beside overriddencreatedon.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "opportunity_key": "opp_5f0c2a91",
  "opportunity": {
    "estimatedvalue": 171500.0,
    "estimatedclosedate": "2025-03-28",
    "actualvalue": 171500.0,
    "actualclosedate": "2025-04-11",
    "new_dealtype": {
      "code": 100000002,
      "label": "Expansion"
    }
  },
  "state_and_status": {
    "statecode": 1,
    "statecode_label": "Won",
    "statuscode": 3,
    "statuscode_label": "Won"
  },
  "process_stage": {
    "stage": "Close",
    "activestagestartedon": "2025-04-02",
    "traversedpath": [
      "Qualify",
      "Develop",
      "Propose",
      "Close"
    ]
  },
  "customer": {
    "type": "account",
    "key": "acc_19b7",
    "industrycode_label": "Durable Manufacturing"
  },
  "originating_lead": {
    "key": "lead_77d0",
    "leadsourcecode_label": "Trade Show"
  },
  "line_items": [
    {
      "product": "prod_a3",
      "quantity": 40,
      "priceperunit": 3900.0,
      "manualdiscountamount": 4500.0,
      "extendedamount": 151500.0
    },
    {
      "productdescription": "[WRITE-IN: onsite commissioning]",
      "quantity": 1,
      "priceperunit": 20000.0,
      "extendedamount": 20000.0
    }
  ],
  "close_activity": [
    {
      "actualrevenue": 171500.0,
      "actualend": "2025-04-11",
      "opportunitystatuscode_label": "Won",
      "competitor": null,
      "description": "[TEXT]"
    }
  ],
  "activities": [
    {
      "activitytypecode": "phonecall",
      "regarding": "opportunity",
      "actualend": "2024-10-23T16:30:00Z",
      "parties": [
        {
          "participationtypemask": 1,
          "label": "Sender",
          "party": "usr_e12"
        },
        {
          "participationtypemask": 2,
          "label": "To Recipient",
          "party": "con_4c1"
        }
      ]
    },
    {
      "activitytypecode": "email",
      "regarding": "quote",
      "actualend": "2025-04-02T09:14:00Z",
      "parties": [
        {
          "participationtypemask": 1,
          "label": "Sender",
          "party": "con_4c1"
        }
      ],
      "detail": {
        "directioncode_outgoing": false,
        "description": "[EMAIL BODY]"
      }
    }
  ],
  "quotes_and_orders": [
    {
      "revisionnumber": 0,
      "state": "Closed",
      "totalamount": 184000.0
    },
    {
      "revisionnumber": 1,
      "state": "Won",
      "totalamount": 171500.0
    }
  ],
  "audit_trail": [
    {
      "column": "estimatedclosedate",
      "old": "2025-02-28",
      "new": "2025-03-28",
      "changed_on": "2025-02-19T10:41:02Z"
    }
  ],
  "ownership": {
    "owner": "usr_e12",
    "createdon": "2024-10-21T09:12:40Z",
    "overriddencreatedon": null
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Deal outcome prediction

Won and lost opportunities with actual revenue from the close activity, and earlier estimates from audit, let a model score a deal partway through.

Account timeline summarization

Calls, emails, meetings and tasks from one activity table, with typed participants, are the history a summarizer condenses.

Next-step recommendation

The order of activities and stage moves on won deals shows which follow-up came after each customer contact.

Quote and discount assistance

Product lines, manual discounts and quote revisions show how a price moved between first quote and order.

Agents on a customized CRM schema

An environment with its own columns and choices tests whether an agent reads metadata before interpreting a code.

Use-case guides: Sales agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Auditing on early

Audit covered the opportunity's value, date and stage columns for most of the period.

Metadata delivered

Every choice, state and status code maps to a label, and every lookup names its target table.

Regarding filled in

Most activities carry a Regarding record, and activityparty rows come with them.

Close activities present

Each closed opportunity has an opportunityclose row with revenue and, on losses, a competitor.

Product lines used

Opportunity values come from opportunityproduct rows, not a single typed total.

Process stages kept

The opportunitysalesprocess rows came with the opportunities, and stage IDs resolve to processstage names.

Record timeline

Dynamics 365 dataset

This page covers dynamics 365 Sales records.Illustrative

One activity table, one Regarding lookup and a close activity

In Dataverse every activity type, phonecall, email, appointment, task or a custom one, is its own table over a shared base table, activitypointer. A row there has an activitytypecode, a subject, times, a state and regardingobjectid, a polymorphic lookup that can point at an account, contact, lead, opportunity, quote or any other table enabled for activities. Each sender, recipient, attendee and organizer is a row in activityparty, with a participationtypemask code for the role, a lookup to the contact, account, lead or user it resolved to, and the email address used in addressused, which de-identification has to cover. One query on activitypointer, joined to activityparty, returns calls, emails, meetings and tasks as one ordered timeline with typed participants.

The limit is that Regarding names exactly one record. The timeline a seller sees on an account rolls up activities regarding its contacts and opportunities, and the raw table does not. An account's full history has to be rebuilt from the activities regarding the account, its contacts, its opportunities and their quotes. An email tracked from Outlook with no Regarding set reaches the customer only through its activityparty rows.

Closing a deal does more than change statecode. Dataverse writes an opportunityclose activity regarding the opportunity, holding the actual revenue, the close date, the competitor chosen on a loss, the state and status reason it closed with and the description typed at close. The opportunity row keeps only its latest actualvalue and actualclosedate, so a deal that was reopened and closed again can have more than one close activity and only one final figure. Quotes and orders get close activities of their own.

Change history lives in audit and choices export as codes

An opportunity row holds current values. The earlier estimated close dates and amounts, and the dates of stage moves, exist only in the audit table, and only if auditing was switched on for the environment, for the table and for the column during the period in question. Administrators can delete audit rows to free storage, so the depth of history differs by environment. Microsoft tells developers to retrieve old and new values through its audit history messages, not from the audit table's raw columns, and the SQL endpoint does not expose audit data, so ask how the trail was pulled. Where a business exports with Azure Synapse Link in append-only mode, the row versions written since then are a second source, though changes made close together may not all be captured.

Choice columns, such as statuscode, leadsourcecode, industrycode and every custom choice, are stored and exported as integers. Their labels live in the environment's metadata, differ between environments and can be reworded without changing the number. Lookups export as GUIDs, and polymorphic ones such as customerid, regardingobjectid and ownerid also need the name of the table they point at. The Web API returns labels only when the caller asks for formatted values, Synapse Link writes them to separate tables such as OptionsetMetadata, StateMetadata and StatusMetadata, with lookup targets in TargetMetadata, and Export to Excel writes labels in place of the codes. A delivery without that metadata is a set of unexplained numbers.

To test a sample, count audit rows per opportunity for estimatedclosedate and estimatedvalue, and note the earliest audit date. Take stage names from the opportunitysalesprocess rows and processstage, since the opportunity's own stageid and traversedpath columns are marked deprecated. Look at overriddencreatedon, which Microsoft describes as the date and time the record was migrated, and ask how rows brought from an earlier system were dated.

What to check before licensing

  • Ask when auditing was enabled for the environment, for the opportunity and lead tables and for each column you need history on, and whether audit rows were ever deleted.
  • Require choice labels, state and status labels and lookup target tables as metadata files, and on a sample list every integer code that has no label.
  • Have the buyer and the data owner read the Microsoft agreement for the environment on bulk export of Dataverse data and API use, and confirm it allows the export route.
  • Confirm the environment owner may license the contact and lead data it holds, including purchased lists and emails written by outside parties.
  • Check the table list against the Sales app, and confirm that case, work order, marketing and finance and operations tables were left out unless you asked for them.
  • Ask which user ran the export and with which security roles, since rows outside its business units and columns under column security come back missing or empty.
  • On a sample, check that every closed opportunity has an opportunityclose row whose actualrevenue matches actualvalue, every email has activityparty rows, and imported rows can be told apart through overriddencreatedon.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Does a Dynamics 365 export include the history of stage and close date changes?

Only where auditing captured it. The opportunity row stores current values, and earlier ones exist in the Dataverse audit table for the tables and columns where auditing was enabled at the time. Ask when auditing started and whether audit rows were deleted. An append-only Azure Synapse Link export, where the business runs one, is a second source.

Why do Dynamics 365 columns arrive as numbers?

Because Dataverse stores choice columns as integer codes. Status reason, lead source, industry and every custom choice export as numbers, and the labels sit in the environment's metadata, which differs by company. A delivery needs the label files for choices, states and statuses, and the target table of each lookup.

How are emails, calls and meetings linked to deals in Dynamics 365?

Through the Regarding lookup and the activityparty table. Every activity shares the activitypointer base table and points at one record, such as an opportunity or an account, through regardingobjectid. Senders, recipients and attendees are separate activityparty rows. An account's full timeline also needs the activities regarding its contacts and opportunities.

Where are the actual revenue and the competitor on a lost deal recorded?

On the opportunityclose activity. When a seller closes an opportunity as won or lost, Dataverse writes that activity with the actual revenue, the close date, the competitor and a free-text description, and sets the status reason on the opportunity. A reopened deal can carry more than one close activity, so ask for all of them.

Which Dynamics 365 apps and custom columns are in scope?

Whichever the request names, and the Sales tables are the usual core. Customer Service cases, Field Service work orders, marketing and finance and operations data sit in other tables or another database, so say whether you want them. Ask the data owner for the list of custom columns and tables, which carry a publisher prefix, and choose from it.

Is SourceX affiliated with Microsoft?

Dynamics 365 Sales is named to identify the system the records come from. That does not imply a partnership with or endorsement by Microsoft. The records belong to the business that runs Dynamics 365 Sales, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

  • Sales CRM pipeline histories

    Opportunity histories with stage changes, logged activities and won or lost outcomes

  • Salesforce CRM records

    One Sales Cloud org's Lead, Account, Contact and Opportunity records with their products, activities, campaign membership and the change history the org kept

  • SugarCRM sales records

    Account, contact, lead, opportunity, revenue line item and quote records from one Sugar instance, with logged activities and per-module audit rows

  • Zoho CRM records

    A Zoho CRM organization's module records: Leads, Contacts, Accounts and Deals with Stage History, logged activities, notes and, where used, Quotes, Sales Orders and Invoices

  • Business Central ledger and document records

    Ledger entries, open and posted sales and purchase documents, and customer, vendor, item and account masters with dimensions from one company in a Business Central tenant

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026. Own data like this? See how companies license it to AI developers.

See if your company qualifies