Connectors

/

Salesforce

/

Move a Salesforce contact to another account
Write

Move a Salesforce contact to a new account with eyes open

For sales and ops teams moving a contact who changed jobs or was misfiled, and want to see what stays behind, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Move a Salesforce contact to another account
Move jordan.lee@contoso.com to the Fabrikam Inc account, new title VP Operations.
Jordan Lee can move from Contoso Ltd to Fabrikam Inc. - Title: Operations Director to VP Operations - Stays behind: 2 opportunity contact roles on Contoso deals - Also linked: 1 open case and 3 open tasks Shall I update the contact? Name, email and phone stay as they are.
Salesforce
Sample figures. Your results come from your own account.
salesforce-get-contact
salesforce-get-account
salesforce-get-opportunity-contact-role
salesforce-get-contract-contact-role
salesforce-get-case
salesforce-get-task
salesforce-update-contact

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

Moving a contact splits their history without anyone noticing

When a contact changes jobs or was filed under the wrong company, moving them looks like a one field change. Their deal roles, contract roles, open cases and tasks stay tied to the old account, so the history splits without anyone realising.

Without PopdockAI

  • Change the account field on the contact
  • Forget the deal and contract roles left behind
  • Miss the open cases and tasks on the old account
  • Discover the split history months later

With PopdockAI

  • One contact and one target account are matched first
  • Roles, open cases and tasks that stay behind are listed
  • You see old and new account and title and confirm
  • Name, email and phone are never changed

The prompt

Use this prompt

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

Prompt
**Objective:** Move the contact with email `{contact-email}` to the account `{new-account-name}`, optionally updating their title to `{new-title}`.

**Step 1: Resolve both records**

* `salesforce-get-contact` with `email`. Require exactly one match.
* `salesforce-get-account` with `name` set to `{new-account-name}`, falling back to `name.contains`. Require exactly one match; if it is the contact's current account, say so and stop.

**Step 2: Check what the move affects**

Using the contact-id: `salesforce-get-opportunity-contact-role` and `salesforce-get-contract-contact-role` (roles that stay tied to the old account's deals and contracts), `salesforce-get-case` with `contact-email` and `closed` false (open cases), and `salesforce-get-task` with `name-id` and `closed` false. List them so the user understands the history stays with the old records.

**Step 3: Confirm and update**

Show old and new account and title. Show the exact values you will send and wait for the user to confirm before any write. If they change anything, show the revised values and confirm again. Then call `salesforce-update-contact` once with `id`, `account-id` and, when given, `title`.

**Step 4: Report**

The change, and the linked records the user may want to revisit.

**Rules & Guidelines:**

* `salesforce-update-contact` is the only write tool this prompt may call, and only once.
* Do not change the contact's name, email or phone.

**Validation:**

* If `salesforce-update-contact` fails, show the error and stop.

Who it's for

One answer, three teams that use it

Account executives

Follow a champion to a new company

Move a contact who changed jobs and see which deals and cases still point at the old account.

Move priya@contoso.com to the Northwind Traders account, new title Head of IT.

Sales operations

Fix contacts filed under the wrong account

Correct the account on a contact knowing exactly which linked records need a second look.

Move tom.reyes@fabrikam.com to the Fabrikam Robotics account and list what stays on the old one.

Customer success managers

Keep account contacts current

Update where a contact sits without losing track of their open cases and tasks.

Move lee@contoso.com to Contoso Health and tell me which open cases and tasks are still on Contoso Ltd.

How it works

What PopdockAI does when you ask

You give the contact's email and the new account, and your AI assistant shows what the move leaves behind. The single update is made only after you confirm.

01

Ask

You give the contact's email and the new account, and optionally a new title.

Your AI tool

02

Check

It finds one contact and one target account, and lists linked roles, cases and tasks.

salesforce-get-contact
salesforce-get-account
salesforce-get-opportunity-contact-role
salesforce-get-contract-contact-role
salesforce-get-case
salesforce-get-task

03

Confirm

You see old and new account and title, and say yes.

No items found.

04

Update

It moves the contact and lists the linked records worth revisiting.

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-contact

Returns Salesforce contacts with their account, title, department, email, phone, mailing address, owner and lead source. Filter by name, email, account, title, owner, lead source and mailing city or state.
get-data

salesforce-get-account

Returns Salesforce accounts with their type, industry, owner, billing address, phone and annual revenue. Filter by name, account number, type, industry, owner, billing city or state, annual revenue and created date.
get-data

salesforce-get-opportunity-contact-role

Returns the contacts involved in Salesforce opportunities, with their buying role and whether they are primary. Filter by opportunity, contact, role and primary flag.
get-data

salesforce-get-contract-contact-role

Returns the contacts linked to Salesforce contracts, with their role and whether they are primary. Filter by contract, contact, role and primary flag.
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-task

Returns Salesforce tasks with their subject, due date, priority, status, assignee and the record they relate to. Filter by subject, assigned user, account, related record, contact or lead, status, priority, closed flag and due date.
run-action

salesforce-update-contact

Updates a Salesforce contact's name, account, title, email, phone, mobile phone or lead source.
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

Contacts move with no surprises left behind

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