In Salesforce Lightning Experience, when a Case is related to a Contact, via the standard 'Contact Name' field, the 'Account Name' is automatically populated when it has no value. However, when a User has Edit access to the 'Case: Account Name' field, any subsequent changes to the related Contact will not automatically change the related Account. The related Account must be changed manually.
Note: The Flow-based workaround described below is intended for use in Lightning Experience only. Users with read-only access to the Account field will find that the Account field is automatically updated when the Case Contact field is updated in Salesforce Classic.
To automatically update the Account Name on a Case when the related Contact changes, create a Salesforce Flow on the Case object as described below. This Flow triggers whenever a Case is created or edited and the Contact ID has changed, then updates the Account Name field to match the Contact's associated Account.
Set the following two conditions (both must be true — AND logic):
5.Set Conditions: All the Conditions are met (AND).
6.Select Immediate Actions.
7.Action Type: Update Records.
8.Record Type: Select the Case record that started your process.
9.Criteria for updating records: No Criteria — Just update the records.
Set the field to update on the Case record:
This tells the Flow to look up the Account associated with the newly selected Contact and set it as the Case Account.
10. Activate the Flow.
See also:
Create a Process
000387888

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.