Skip to content

Dataset

Salesforce CRM record datasets for AI training

A Salesforce dataset is a collection of one company's Sales Cloud records: Lead, Account, Contact and Opportunity rows, the OpportunityLineItem products on each deal, logged Task and Event activities, CampaignMember rows, and the OpportunityHistory and field history the org kept, together with the custom objects and fields that org defined. SourceX sources it to a buyer's spec from established businesses that run Sales Cloud. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One Sales Cloud org's Lead, Account, Contact and Opportunity records with their products, activities, campaign membership and the change history the org kept
Typical systems
Salesforce Sales Cloud with Campaigns, Products and Price Books, Enhanced Email and the org's own custom objects; CPQ and Service Cloud records only on request
Typical history
Specified by the buyer; OpportunityHistory usually spans the org's life, field history only from the day each field was tracked and within Salesforce's retention
Modality
Structured sObject rows joined by record ID; free text in Description fields, Task comments and EmailMessage bodies
Delivery formats
Agreed per order; one CSV or JSONL file per object with the org's describe metadata, or JSON records rooted on the Opportunity
Preparation
Record IDs re-keyed with key prefixes kept; names, emails, phones and addresses removed; free text redacted; every __c field reviewed; vendor enrichment fields dropped
Licensing
Permitted use agreed per license; rights reviewed for Lead and Contact personal data and for third-party enrichment data
Availability
Sourced to your spec from businesses that run Sales Cloud; 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_keystringRe-keyed Opportunity Id with the 006 key prefix kept. Every child row in the record points at it.
opportunityobjectOpportunity row: StageName, IsClosed, IsWon, Amount, CloseDate, Type, LeadSource, RecordTypeId, CurrencyIsoCode and OwnerId as a key.
converted_leadobjectThe Lead whose ConvertedOpportunityId is this deal: Status, LeadSource, CreatedDate, ConvertedDate and its converted Account and Contact keys.
account_refobjectAccount row through AccountId: Industry, Type, NumberOfEmployees as a band, BillingState, ParentId key and IsPersonAccount.
contact_rolesarrayOpportunityContactRole rows: Contact key, Role and IsPrimary, with the Contact's Title.
line_itemsarrayOpportunityLineItem rows: Product2 ProductCode and Family through PricebookEntry, Quantity, UnitPrice, TotalPrice and ServiceDate.
opportunity_historyarrayOpportunityHistory rows in CreatedDate order, each with StageName, Amount, ExpectedRevenue, Probability, CloseDate and ForecastCategory as saved.
field_historyarrayOpportunityFieldHistory rows: Field, OldValue, NewValue, CreatedDate and CreatedById key, present only for fields the org tracked.
tasksarrayTask rows whose WhatId is this deal: Subject, TaskSubtype, Status, ActivityDate, CallDurationInSeconds, Description and the WhoId key.
eventsarrayEvent rows whose WhatId is this deal: Subject, StartDateTime, EndDateTime and invitee keys from EventRelation.
email_messagesarrayEmailMessage rows where the org runs Enhanced Email: Incoming flag, MessageDate, Subject and redacted TextBody.
campaign_membersarrayCampaignMember rows for the deal's Contacts or converted Lead: the Campaign's Type, Status, HasResponded and FirstRespondedDate.
custom_fieldsobjectThe row's __c fields under their API names, including namespace-prefixed managed package fields that passed review.
describe_refstringPointer to the delivered describe file: each object's fields, types, labels, picklist values, and which are formulas or history-tracked.
Sample recordIllustrative

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

Example record

{
  "opportunity_key": "006_o4471",
  "opportunity": {
    "StageName": "Closed Won",
    "IsWon": true,
    "Amount": 48600.0,
    "CloseDate": "2024-06-27",
    "LeadSource": "Trade Show"
  },
  "converted_lead": {
    "Id": "00Q_l5521",
    "Status": "Qualified",
    "ConvertedDate": "2024-03-04"
  },
  "account_ref": {
    "Id": "001_a3090",
    "Industry": "Machinery",
    "employee_band": "200-500"
  },
  "contact_roles": [
    {
      "ContactId": "003_c8841",
      "Role": "Economic Buyer",
      "IsPrimary": true
    }
  ],
  "line_items": [
    {
      "ProductCode": "FLT-TELEM-STD",
      "Quantity": 120,
      "UnitPrice": 405.0,
      "TotalPrice": 48600.0
    }
  ],
  "opportunity_history": [
    {
      "CreatedDate": "2024-03-04T15:02:40Z",
      "StageName": "Discovery",
      "Amount": 60000.0,
      "Probability": 20,
      "CloseDate": "2024-05-31",
      "ForecastCategory": "Pipeline"
    },
    {
      "CreatedDate": "2024-05-20T13:44:09Z",
      "StageName": "Negotiation",
      "Amount": 48600.0,
      "Probability": 75,
      "CloseDate": "2024-06-28",
      "ForecastCategory": "BestCase"
    },
    {
      "CreatedDate": "2024-06-27T18:10:55Z",
      "StageName": "Closed Won",
      "Amount": 48600.0,
      "Probability": 100,
      "CloseDate": "2024-06-27",
      "ForecastCategory": "Closed"
    }
  ],
  "field_history": [
    {
      "Field": "NextStep",
      "OldValue": "Send pilot plan",
      "NewValue": "Legal review",
      "CreatedDate": "2024-05-21T09:12:00Z"
    }
  ],
  "tasks": [
    {
      "Subject": "Call",
      "TaskSubtype": "Call",
      "ActivityDate": "2024-04-11",
      "CallDurationInSeconds": 1260,
      "Description": "[PERSON_1] wants a 20 unit pilot first."
    }
  ],
  "events": [
    {
      "Subject": "Onsite demo",
      "StartDateTime": "2024-04-23T14:00:00Z"
    }
  ],
  "email_messages": [
    {
      "Incoming": true,
      "MessageDate": "2024-05-19T21:03:12Z",
      "TextBody": "We can sign in June at the 120 unit price."
    }
  ],
  "campaign_members": [
    {
      "CampaignType": "Trade Show",
      "Status": "Attended",
      "HasResponded": true,
      "FirstRespondedDate": "2024-02-08"
    }
  ],
  "custom_fields": {
    "Pilot_Units__c": 20,
    "Competitor__c": "Incumbent vendor"
  },
  "describe_ref": "describe/Opportunity.json"
}

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

What AI teams use it for

Deal state at any date

OpportunityHistory rows give stage, amount, close date and forecast category as saved each time, so features can be built as of any day in a deal.

Agents that write valid CRM records

Real rows with the org's record types, picklists and lookups are worked examples for agents that update Salesforce.

Lead qualification

Converted and unconverted Lead rows, with the Tasks logged before conversion, label which prospects became an Opportunity.

Next-step and summary drafting

Task comments and EmailMessage bodies sit beside the NextStep edits and stage changes that followed them.

Schema-grounded evaluation

SOQL generation and reporting tasks can be scored against a real org schema with custom objects.

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

What makes this data valuable

Field history switched on early

OpportunityFieldHistory covers NextStep, OwnerId and key __c fields for most of the period.

Converted Leads present

Lead rows with IsConverted true are delivered with their three converted keys.

Describe metadata delivered

Every object comes with its field list, types, labels and picklist values.

Emails stored as rows

Emails exist as EmailMessage or Task rows, not only on an Einstein Activity Capture timeline.

Deleted and archived rows stated

The supplier says whether queryAll was used and how IsDeleted and archived activities were handled.

Stage definitions kept

OpportunityStage rows map each StageName to IsClosed, IsWon and ForecastCategory.

System export

Salesforce dataset

This page covers salesforce CRM records.Illustrative

Which changes Salesforce logs and which it overwrites

Salesforce keeps two different histories on an opportunity. OpportunityHistory is automatic. Whenever a save changes StageName, Amount, Probability, CloseDate or ForecastCategory, Salesforce writes a row holding those values as they stood after the save. No admin has to switch it on, so in most orgs it runs back to the first deal. It is the table behind the Stage History list on the opportunity page.

Every other field is overwritten in place unless someone chose otherwise. OpportunityFieldHistory holds a row with Field, OldValue and NewValue only for fields the org's admin selected under Field History Tracking, and only from the day the box was ticked. If NextStep, OwnerId or a custom qualification field was never tracked, the export holds its last value and nothing before it. Salesforce also caps how many fields an object can track, commits to keeping the rows only for a limited period unless the org bought the Field Audit Trail add-on, and logs a long text field as changed with no old or new value. The learnable history of an org was fixed by a setup choice made years ago, so ask for the tracked field list and the earliest row per field before sizing anything else.

Some values look historical and are not. Formula fields are computed when read and roll-up summary fields are recalculated as their child rows change, so an export holds today's result for both. Stages have usually been renamed or retired over the years, so ask how StageName values in old OpportunityHistory rows map to the current OpportunityStage list.

What a Salesforce export returns and how to test it

Whether it comes from the Data Export service, Data Loader or the Bulk API, a Salesforce extract is one flat file per object, joined by record IDs. An ID is 15 case-sensitive characters, or 18 with a suffix that keeps it unique in tools that ignore case. Its first three characters name the object: 006 for Opportunity, 00Q for Lead, 003 for Contact. Mixing the two forms, or passing 15-character IDs through a spreadsheet lookup, breaks joins without an error. Task and Event are polymorphic. WhoId points at a Lead or a Contact and WhatId at an Account, Opportunity, Campaign or custom object, and in a flat file only the prefix says which.

Three things go missing by default. Converted Leads drop out of lead list views, and most users can no longer open them, but they remain as rows with IsConverted true and ConvertedAccountId, ConvertedContactId and ConvertedOpportunityId filled, so an extract filtered to open leads cuts off the start of every deal that began as a Lead. Older Tasks and Events are archived and deleted rows wait in the Recycle Bin, and a normal query skips both unless queryAll, or Export All in Data Loader, was used. Emails that Einstein Activity Capture shows on the activity timeline may not be stored as EmailMessage or Task rows at all, depending on how the org set it up.

No two orgs deliver the same schema. Custom fields and objects end in __c, managed packages add a namespace prefix, and picklists hold API values, so the describe output must come with the rows. On a sample, resolve every lookup, check that each won Opportunity has OpportunityHistory rows ending in a won stage, and list the earliest OpportunityFieldHistory row per field.

What to check before licensing

  • Ask for the Field History Tracking list per object with the earliest history row for each field, and whether the org bought Field Audit Trail.
  • Have the buyer and the org owner each read what the Salesforce agreement says about API use for bulk extraction and about use of exported data.
  • Confirm the org owner may license the personal data of the Leads and Contacts in the records, and have counsel review the de-identification method.
  • Ask which fields were filled by third-party data vendors, often visible as managed package namespace prefixes, and confirm they are excluded or cleared.
  • Confirm that converted Leads, deleted rows and archived Tasks and Events are in the pull, and whether it was made with queryAll.
  • Ask whether emails live as EmailMessage rows, as Task rows with TaskSubtype Email, or only in Einstein Activity Capture.
  • On a sample, resolve every WhoId, WhatId and lookup, and check that 15 and 18 character IDs were not mixed.

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

How far back does opportunity history go in a Salesforce org?

Usually to the org's first opportunity for the values OpportunityHistory covers, and less for everything else. Stage, amount, probability, close date and forecast category are logged automatically. Any other field has history only if an admin tracked it, only from that date, and only within the period Salesforce retains unless Field Audit Trail was bought. Ask the supplier for the tracked field list before you size a request.

Are an org's custom objects and fields included?

They can be, where the request asks for them and they pass review. Much of what makes an org's data specific sits in __c fields and custom objects. Each needs review for personal data and confidential content, and its label, type and picklist values from the describe output should come with it, since API names alone say little. Fields added by managed packages may hold another vendor's data, so ask how they were checked.

Can the emails and calls logged on deals be delivered?

It depends on where the org stored them. Calls and manually logged emails are Task rows with a comment field. Orgs running Enhanced Email hold each message as an EmailMessage row with its body. Emails captured by Einstein Activity Capture can appear on the timeline without being stored as records, in which case an export does not contain them. Bodies are redacted before delivery.

Is a Salesforce export the same shape from every company?

No. The standard objects are shared, but stages, record types, picklist values, required fields and every custom field differ by org. Specify the standard objects and the kinds of custom data you need, and ask for the describe metadata and the OpportunityStage table so each org can be mapped to your own layout.

What happens to Lead and Contact personal data?

Names, emails, phone numbers and addresses on Lead, Contact and person account rows are removed or replaced with stable keys before delivery, so joins still work. Free text in Description fields, Task comments and email bodies is redacted, which is harder and never perfect. The method is recorded for each dataset. Buyers should check a sample for leftover names and confirm the approach with counsel.

Is SourceX affiliated with Salesforce?

Salesforce Sales Cloud is named to identify the system the records come from. That does not imply a partnership with or endorsement by Salesforce. The records belong to the business that runs Salesforce Sales Cloud, 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

  • HubSpot CRM records

    CRM objects, logged activities, form submissions and list memberships from one HubSpot account, with property history and associations

  • Dynamics 365 Sales records

    One Dynamics 365 Sales environment's Dataverse tables for accounts, leads, opportunities, quotes and orders, with activities and metadata

  • Salesforce CPQ quote records

    One org's CPQ package records: quotes, quote lines with every price level, bundles, discount schedules, approvals, and the contracts and subscriptions behind amendments and renewals

  • Salesforce Service Cloud case records

    One Service Cloud org's Case records with their emails, comments, feed posts, transcripts, tracked field history, milestones and attached Knowledge articles

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