Dataset
Salesforce Service Cloud case datasets for AI training
A Salesforce Service Cloud dataset is an export of the Case records in a business's Salesforce org with the records that hang off each case: EmailMessage rows from Email-to-Case, CaseComment rows, FeedItem posts, chat and messaging transcripts, CaseHistory field changes, CaseMilestone timers and the Knowledge articles agents attached. SourceX sources it to a buyer's spec from established businesses that run Service Cloud, joined to the Account, Contact and Entitlement records each case references. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- One Service Cloud org's Case records with their emails, comments, feed posts, transcripts, tracked field history, milestones and attached Knowledge articles
- Typical systems
- Salesforce Service Cloud with Email-to-Case, Web-to-Case, Omni-Channel, Chat or enhanced Messaging, Lightning Knowledge and Entitlement Management; Service Cloud Voice on request
- Typical history
- Specified by the buyer; cases and emails can span the org's life, while CaseHistory starts the day each field was tracked
- Modality
- Structured sObject rows joined by record ID; free text in Description, CommentBody, TextBody, feed posts and transcript 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 Case
- Preparation
- Record IDs re-keyed with key prefixes kept; names, emails, phones and Supplied fields removed; message text redacted; every __c field reviewed
- Licensing
- Permitted use agreed per license; rights reviewed for Contact personal data, message content and third-party package data
- Availability
- Sourced to your spec from businesses that run Service Cloud; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| case_key | string | Stable key replacing the Case record ID, with the 500 key prefix kept so joins can be checked. |
| case | object | Case standard fields: CaseNumber, Subject, Description, Status, Priority, Origin, Type, Reason, IsEscalated, CreatedDate and ClosedDate. |
| owner | object | OwnerId resolved to a pseudonymous User or to a queue, which Salesforce stores as a Group. |
| account_ref | object | Generalized Account and Contact attributes from the case's AccountId and ContactId. |
| entitlement | object | The Entitlement named by EntitlementId and the Asset named by AssetId, where set. |
| email_messages | array | EmailMessage rows whose ParentId is the case: Incoming, MessageDate, Subject, TextBody and HasAttachment. |
| case_comments | array | CaseComment rows with CommentBody, IsPublished (false means internal) and CreatedDate. |
| feed_items | array | FeedItem rows on the case feed with Type, Body and Visibility, and their FeedComment replies. |
| chat_transcripts | array | LiveChatTranscript rows linked by CaseId, with Body, Status and LiveChatTranscriptEvent rows for accepts and transfers. |
| messaging_sessions | array | MessagingSession rows linked by CaseId, with ConversationEntry turns: actor type, message text and entry time. |
| case_history | array | CaseHistory rows with Field, OldValue, NewValue and CreatedDate, for tracked fields only. |
| case_milestones | array | CaseMilestone rows with the MilestoneType name, TargetDate, CompletionDate, IsCompleted and IsViolated. |
| case_articles | array | CaseArticle links to the Knowledge__kav version attached to the case, with ArticleNumber, Title and PublishStatus. |
| custom_fields | object | The org's __c fields on Case, keyed by API name and documented in the describe output. |
Field names from the table above; values are masked placeholders.
Example record
{
"case_key": "500_c7e41a",
"case": {
"CaseNumber": "00048213",
"Subject": "Label printer offline after firmware update",
"Status": "Closed",
"Priority": "High",
"Origin": "Email",
"IsEscalated": true,
"CreatedDate": "2024-03-11T14:02:07Z",
"ClosedDate": "2024-03-13T09:41:55Z"
},
"owner": {
"type": "User",
"key": "005_91bd02",
"role": "Tier 2 Support"
},
"account_ref": {
"account_key": "001_3f0a77",
"industry": "Logistics",
"contact_key": "003_a2c918"
},
"entitlement": {
"name": "Premium Hardware Support",
"asset_key": "02i_55e0c1"
},
"email_messages": [
{
"Incoming": true,
"MessageDate": "2024-03-11T14:02:07Z",
"TextBody": "Since last night's update every LP-400 on our packing line shows offline. [NAME]",
"HasAttachment": true
},
{
"Incoming": false,
"MessageDate": "2024-03-11T14:31:40Z",
"TextBody": "Hello [NAME], please open the service menu and tell me the version shown."
}
],
"case_comments": [
{
"IsPublished": false,
"CreatedDate": "2024-03-11T15:10:02Z",
"CommentBody": "Reproduced on the bench unit. Rollback needs Tier 2."
}
],
"feed_items": [
{
"Type": "TextPost",
"Visibility": "InternalUsers",
"Body": "@[USER] can you take this, the resolution milestone is at risk"
}
],
"chat_transcripts": [],
"messaging_sessions": [],
"case_history": [
{
"Field": "Owner",
"OldValue": "Tier 1 Queue",
"NewValue": "[USER 005_91bd02]",
"CreatedDate": "2024-03-11T15:14:48Z"
},
{
"Field": "Status",
"OldValue": "Working",
"NewValue": "Closed",
"CreatedDate": "2024-03-13T09:41:55Z"
}
],
"case_milestones": [
{
"MilestoneType": "Resolution",
"TargetDate": "2024-03-12T14:02:07Z",
"CompletionDate": "2024-03-13T09:41:55Z",
"IsViolated": true
}
],
"case_articles": [
{
"ArticleNumber": "000001482",
"Title": "Roll back LP-400 firmware from the service menu",
"PublishStatus": "Online"
}
],
"custom_fields": {
"Root_Cause__c": "Firmware regression"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train support agents on full case timelines
Email, comment, feed and transcript rows merged by timestamp give the whole exchange, with internal comments kept apart from what the customer saw.
Learn routing and escalation
Owner changes between queues and users in CaseHistory, with IsEscalated, show where a case went and when.
Ground answers in attached Knowledge
CaseArticle links pair a real question with the Knowledge__kav version an agent chose.
Predict and explain SLA breaches
CaseMilestone targets, completions and violations sit beside the conversation that ran while the timer did.
Build evaluation sets from closed cases
Closed cases held out with their final reply and CaseMilestone result make test items.
Use-case guides: Customer support agents, Enterprise and computer-use agents, Document AI, enterprise search and RAG, Private evaluation sets
What makes this data valuable
Status and Owner tracked early
CaseHistory rows for Status and Owner that start near the org's first cases give a lifecycle per case.
Email threads kept whole
Every inbound and outbound EmailMessage on a case is present, with Incoming and MessageDate filled.
Public and internal text marked
IsPublished on CaseComment and Visibility on FeedItem separate customer-visible text from agent notes.
Transcripts tied to cases
LiveChatTranscript and MessagingSession rows with CaseId filled join live conversations to their outcome.
Articles attached, not pasted
CaseArticle rows make the answer source a record and not a guess.
Documented customization
Record types, __c fields and managed-package objects listed with the describe output.
Record timeline
Salesforce Service Cloud
One Case row, and a conversation spread over five objects
A Service Cloud case is a single Case row, and the conversation is not on it. Email-to-Case writes each inbound and outbound email as an EmailMessage row whose ParentId is the case, with Incoming saying which way it went. Agents add CaseComment rows, public or internal by IsPublished. Chatter posts are FeedItem rows with FeedComment replies. A session in the older Chat product is a LiveChatTranscript whose Body holds the whole exchange as one block of formatted text, and a Messaging conversation is a MessagingSession whose turns are ConversationEntry records. One timeline means merging five tables by timestamp.
Two things complicate that merge. The case feed mirrors other objects, so an email or a case comment can also appear as a FeedItem of its own Type, and a plain union counts the same message twice. Email-to-Case also copies the first email into the Case Description, and each later reply quotes the chain beneath it, so one paragraph can sit in Description, in the first EmailMessage and in every reply after it.
The case also sits inside the CRM that sales uses. AccountId and ContactId point at the same Account and Contact records as opportunities do, EntitlementId at the support contract, AssetId at the product owned, and OwnerId at either a User or a queue, which Salesforce stores as a Group. A case from an unknown sender has no Contact, only SuppliedName and SuppliedEmail. Everything on the Case row, Status included, is the value at export time unless the field was tracked. Milestones are the exception: each CaseMilestone keeps its own start, target and completion times.
What a Service Cloud export returns, and what CaseHistory leaves out
A Salesforce extract is one file per object keyed by record ID, whether it came from the Data Export service, Data Loader or the Bulk API, so a case arrives as a Case row plus a file per child object. Message content survives well: TextBody on EmailMessage, CommentBody on CaseComment and Body on FeedItem come out whole, up to each field's length limit. EmailMessage also holds HtmlBody and Headers, so ask which body was delivered and whether raw headers were dropped. Change history is thinner. CaseHistory holds Field, OldValue and NewValue only for the Case fields an admin selected under Field History Tracking, from the day each was selected. A tracked long text field is logged as edited with no old or new text, and a change to a lookup such as Owner can appear as two rows, one holding IDs and one holding names. Ask how far back the rows go, because Salesforce limits how long field history is kept unless the org bought Field Audit Trail.
Several things are missing unless someone asks. Files attached to emails and cases are ContentVersion rows tied to their parent by ContentDocumentLink, or rows in the older Attachment object, so an extract of the conversation objects brings a HasAttachment flag and no file. Deleted cases wait in the Recycle Bin, where a standard query skips them, so ask whether the duplicates left by case merges were kept or deleted. Knowledge__kav returns the article versions the query filtered for, so archived versions that old cases cite may be absent. In orgs on enhanced Messaging, a conversation's turns may not be queryable as ConversationEntry rows and are fetched per conversation through a separate API, so ask how messaging transcripts were extracted.
Status is the org's own picklist. Record types decide which values a case can take, and the CaseStatus object says which count as closed, so ask for it with the describe output. Record IDs also hide in text: older Email-to-Case setups stamped a reference string built from the org and case IDs into outbound emails, and a LiveChatTranscript Body names its speakers. On a sample, resolve every ParentId and CaseId, count conversation rows per case by object, search email text for reference strings and list the earliest CaseHistory row per Field.
What to check before licensing
- Have the business and counsel read Salesforce's terms on API use and exported data before scoping.
- Ask for the list of fields tracked on Case and the earliest CaseHistory row per Field.
- Get the describe output for Case and every related object, with custom fields, custom objects and managed-package objects named by package.
- Count rows per case in EmailMessage, CaseComment, FeedItem, LiveChatTranscript and MessagingSession, and use FeedItem Type to remove mirrored emails and comments.
- Ask which product carried chat (the older Chat, Messaging or both), over which dates, and how messaging turns were extracted.
- Confirm Account and Contact details are de-identified in rows and in free text: SuppliedName, SuppliedEmail, email signatures, Email-to-Case reference strings and speaker names inside chat transcript bodies.
- Check whether attachments, call recordings and Knowledge article versions are in scope.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
How do I rebuild a full case conversation from a Service Cloud export?
Merge the child objects by timestamp. Emails are EmailMessage rows with ParentId set to the case, comments are CaseComment rows, Chatter posts are FeedItem rows, and chats and messaging conversations are transcript objects linked by CaseId. Drop feed items that mirror an email or comment, and keep the IsPublished and Visibility flags so internal notes stay separate.
Does the export show every status change on a case?
Only if Status was a tracked field. CaseHistory records changes for the fields an admin selected under Field History Tracking, from the date each was selected and within Salesforce's retention. If Status or Owner was never tracked, the export holds the final value alone. Ask for the tracked field list before you size a lifecycle or routing dataset.
Are chat and messaging transcripts included?
They can be, where the org used those channels. The older Chat product stores each session as a LiveChatTranscript with the whole exchange in its Body field. Messaging stores a MessagingSession per conversation, with turns as conversation entries that some setups expose only through an API. State which channels you want, and ask what share of sessions carry a CaseId.
How are custom fields and managed-package objects handled?
Each is listed from the org's describe output, then delivered with documentation or left out, as the scope states. Most orgs add __c fields to Case for product, root cause or region, and installed packages for telephony, surveys or QA add namespaced objects. Review custom fields one by one, because a free-text custom field can hold personal data that no standard rule catches.
Can cases be joined to sales records from the same org?
Yes, where the license covers both. A case's AccountId and ContactId point at the same records Sales Cloud uses, so cases can sit beside an account's opportunities and assets. That join raises re-identification risk, since industry, size, products and dates together can single out a customer. Agree which Account attributes are generalized.
Is SourceX affiliated with Salesforce?
Salesforce Service 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 Service 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.
Related datasets
- Customer support ticket datasets
Resolved support cases with full threads, internal notes and outcomes
- Escalated technical support cases (tier 2 and 3)
Support cases that left the front line, with handoff notes, investigation, attached evidence and confirmed root cause
- 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
- Zendesk support ticket histories
Tickets from a Zendesk account with comments, audits, metric events and ratings, plus its macros, ticket fields and help center articles
- HubSpot Service Hub tickets
Tickets from one HubSpot account with stage and owner history, the inbox threads and activities behind them, and survey feedback
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell 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.