Connectors

/

Salesforce

/

Salesforce case history
Report

Pick up any Salesforce case with its full history in one read

For support agents taking over a long-running case who want one timeline and the next step, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Salesforce case history
Give me the history of Salesforce case 00045678 and what is blocking it.
Case 00045678 for Fabrikam Inc is 23 days old, High priority, and support owes the customer a reply. - Last in: customer email on 2026-10-03 asking for an update - Last out: support reply on 2026-09-28 - Blocker: work order WO-1042 waiting on a replacement part Suggested next step: confirm the part date with the customer today. Want the full timeline?
Salesforce
Sample figures. Your results come from your own account.
salesforce-get-case
salesforce-get-case-comment
salesforce-get-email-message
salesforce-get-messaging-session
salesforce-get-case-solution
salesforce-get-solution
salesforce-get-case-team-member
salesforce-get-work-order
salesforce-get-files

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Salesforce

Salesforce
Run it on your own Salesforce data.

Connect Salesforce, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Picking up a long case means clicking through every view

Taking over a long running case means reading comments, emails, chats, solutions, work orders and attachments in separate Salesforce views. Working out who is waiting on whom and what is blocking it takes far too long.

Without PopdockAI

  • Read comments, emails and chats in separate views
  • Open each work order and attachment
  • Piece together the order of events by hand
  • Guess who is waiting on whom

With PopdockAI

  • Every related record is read and merged into one dated timeline
  • Who is waiting is worked out from the last message in and out
  • Blockers and a next step are suggested
  • Read only, with long emails summarised

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Build a timeline of case `{case-number}` and say where it stands and what is blocking it.

**Step 1: Resolve the case**

Call `salesforce-get-case` with `case-number` set to `{case-number}`. If nothing matches, say so and stop.

**Step 2: Gather, by case-id unless stated**

* `salesforce-get-case-comment`: internal and published comments.
* `salesforce-get-email-message`: emails in and out (use `incoming` to tell them apart).
* `salesforce-get-messaging-session`: chat and messaging sessions.
* `salesforce-get-case-solution`: solutions attached; for each, `salesforce-get-solution` with `title.contains` set to the solution title when its status or description is needed.
* `salesforce-get-case-team-member`: who else is on the case.
* `salesforce-get-work-order`: field work raised from it, with status.
* `salesforce-get-files` with `linked-record-id` set to the case-id: attachments.

**Step 3: Report**

* Header: subject, account, contact, priority, status, owner, age, escalated.
* A dated timeline merging comments, emails, sessions and work orders, oldest first, one line each.
* Who is waiting on whom right now (customer or support), based on the last incoming versus outgoing message.
* Blockers and a suggested next step.

**Rules & Guidelines:**

* This prompt is read-only. Do not call any write tool: `salesforce-add-account`, `salesforce-add-contact`, `salesforce-add-lead`, `salesforce-add-opportunity`, `salesforce-add-case`, `salesforce-add-task`, `salesforce-add-asset`, `salesforce-add-campaign`, `salesforce-update-account`, `salesforce-update-contact`, `salesforce-update-lead`, `salesforce-update-opportunity`, `salesforce-update-case`, `salesforce-update-task` or `salesforce-update-asset`.
* Quote customer text only as much as needed; summarize long email bodies.

**Validation:**

* If there are no comments or emails, say the case has no recorded conversation.

Who it's for

One answer, three teams that use it

Support agents

Take over a case without starting over

Get the full history and the current blocker before you reply to the customer.

Summarise Salesforce case 00067890 for me and tell me who is waiting on whom.

Support team leads

Unstick cases that have stalled

See what is blocking a long running case and the suggested next step in one answer.

Why is case 00023456 still open? Give me the timeline and blockers.

Escalation managers

Brief yourself before an escalation call

Know every touchpoint on a case, including work orders and files, before talking to the customer.

Give me the full history of case 00045123 for Contoso, including work orders and attachments.

How it works

What PopdockAI does when you ask

You give the case number, and your AI assistant reads everything attached to the case and builds one timeline. Nothing on the case is changed.

01

Ask

You give the case number.

Your AI tool

02

Read

It reads comments, emails, messaging sessions, solutions, team members, work orders and files.

salesforce-get-case
salesforce-get-case-comment
salesforce-get-email-message
salesforce-get-messaging-session
salesforce-get-case-solution
salesforce-get-solution
salesforce-get-case-team-member
salesforce-get-work-order
salesforce-get-files

03

Merge

It builds one dated timeline, oldest first.

No items found.

04

Report

You get who is waiting on whom, the blockers and a suggested next step.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Salesforce and one secure connection to your AI tool. No code, no exports.

get-data

salesforce-get-case

Returns Salesforce support cases with their subject, status, priority, origin, owner, account, contact and whether they are escalated or closed. Filter by case number, subject, status, priority, owner, account, contact email, closed flag and created date.
get-data

salesforce-get-case-comment

Returns the comments on Salesforce cases, with their author, date and whether they are published. Filter by case, comment text, created date and published flag.
get-data

salesforce-get-email-message

Returns the emails logged in Salesforce, such as email-to-case messages, with sender, recipients, subject, body, status and whether they are incoming. Filter by case, related record, subject, from and to address, status, incoming flag and message date.
get-data

salesforce-get-messaging-session

Returns Salesforce messaging sessions, such as chat and SMS conversations, with channel, status, owner, contact, case and message counts. Filter by case, account, contact, owner, channel type, status and start time.
get-data

salesforce-get-case-solution

Returns the solutions attached to Salesforce cases. Filter by case or solution.
get-data

salesforce-get-solution

Returns Salesforce solutions, the knowledge answers attached to cases, with status, whether they are reviewed and public and how many cases use them. Filter by title, solution number, status, owner and public flag.
get-data

salesforce-get-case-team-member

Returns the people on Salesforce case teams, with their team role. Filter by case and member.
get-data

salesforce-get-work-order

Returns Salesforce Field Service work orders with their account, case, asset, work type, priority, status and grand total. Filter by work order number, account, case, owner, status, priority, start date and grand total.
get-data

salesforce-get-files

Returns the files attached to Salesforce records, with their latest published version. Filter by title and linked record.
Read only.Nothing in Salesforce Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

Understand any case in one read

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation