When creating case, if contact has accountId, Salesforce is automatically relating my case to that account which I would like not to happen. If account is selected on the case and contact has account related, I would like to create case with out account on it.

Here is the link where SF says "When you enter or select a contact for the Contact Name field, the Account Name field defaults to the account associated with the contact when you save the case. However, you can change the account in the Account Name field during subsequent updates." https://help.salesforce.com/apex/HTViewHelpDoc?id=cases_create.htm&language=en

Is there a way to create cases with no account associated although contact has accountId present on it ?


  • you could probably clear it out in an after insert trigger on Case
    – cropredy
    Feb 8, 2016 at 0:49

1 Answer 1

  1. Create an additional lookup relationship with Contact on the Case object
  2. Use the newly created Contact field in your Pagelayout and hide the Original one.
  3. Use a Workflowrule or process to update the original Contact lookup field with the Value in your newly created Contact field.
  • The problem is once contact is updated salesforce is automatically populating accountid on case
    – sf_user
    Feb 7, 2016 at 19:22
  • Only on Case creation as far as I know, not on update.
    – user28311
    Feb 7, 2016 at 19:26
  • As of now, on case update, too, accountId is populated automatically. Nov 21, 2022 at 14:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .