1

I deactivated couple of stages from the Stage field on my Opportunity object and replaced them with new ones.

However when I create an opportunity record, the Stage picklist defaults to an old stage value which was deactivated. To test further, I deleted that value from the Stage picklist but it still shows up in the Stage picklist and the record on creation defaults to it.

I checked and there are no triggers which would set the stage on record insertion so its definitely not Apex issue.

Here is the active picklist for Stage: enter image description here

But when I create an opportunity record, it defaults to a stage named: Découverte (which has been deleted from the picklist).

enter image description here

Any idea what might be going on. I am working on a partial copy sandbox.

6
  • Are you creating the Opportunity via a Quick Action or the New button on its record page?
    – David Reed
    Aug 14 '19 at 12:06
  • New button on the Opportunities list page Aug 14 '19 at 12:08
  • 2
    A shot in the dark: have you tried emptying your trashbin? It might be that your deleted stage still exists there Aug 14 '19 at 12:14
  • How about Workflow Rules or Processes on the object?
    – David Reed
    Aug 14 '19 at 12:18
  • Do you use Sales Processes? I'd guess that somehow the value is default there.
    – sfdcfox
    Aug 14 '19 at 12:24
1

Any record in Salesforce can still be referenced as long as it is not fully removed. Deleting a record moves it to the trashbin where it resides until it is automatically removed or by clearing the Recycle Bin.

Only the final deletion of a record (and this includes setup records as well) will ensure that no references keep existing.

In this case the default stage still existed.

To make it easier to understand and have full control over what happens, first deactivate the stage you would like to remove, then delete it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.