Update Custom Field on Opportunity in Salesforce when Stage is Closed Lost

Update Custom Field on Opportunity when Stage is Closed Lost

Question

Salesforce admin created a custom field on the opportunity based on Sales Ops request.

They would like this custom field to be updated when the stage of the opportunity is set to Closed Lost.

How could this be done?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: D

Workflows in Salesforce is a fantastic way to automate certain business processes.

You can create a rule, and based on certain criteria that you set, Salesforce can do a number of things, like send an email, create a task, or update a field.

Other options are incorrect because Validation rules, Assignment rules, and Auto-response rules don't have the options of updating a custom field.

References:

Correct Answer: D

Workflows in Salesforce is a fantastic way to automate certain business processes.

You can create a rule, and based on certain criteria that you set, Salesforce can do a number of things, like send an email, create a task, or update a field.

Other options are incorrect because Validation rules, Assignment rules, and Auto-response rules don't have the options of updating a custom field.

References:

The correct answer to this question is D. Workflow Rule.

Workflow Rules in Salesforce are used to automate standard internal procedures and processes to save time and increase productivity. They are used to create standard tasks, send email notifications, update fields, and create new records. A workflow rule consists of three components: criteria, immediate actions, and time-based actions.

In this case, the Salesforce admin created a custom field on the opportunity based on Sales Ops request, and they would like this custom field to be updated when the stage of the opportunity is set to Closed Lost. To achieve this requirement, the admin needs to create a Workflow Rule.

Here are the steps to create a Workflow Rule:

  1. From Setup, click on Object Manager and select the Opportunity object.
  2. Click on Workflow Rules and then click on New Rule.
  3. Enter a name and description for the Workflow Rule.
  4. In the Evaluation Criteria section, select "created, and every time it's edited."
  5. In the Rule Criteria section, enter the criteria as "Opportunity Stage equals Closed Lost."
  6. In the Immediate Actions section, click on "New Action" and select "Update Records."
  7. Select the custom field that needs to be updated and enter the new value for that field.
  8. Save the Workflow Rule.

Once the Workflow Rule is activated, every time an opportunity's stage is set to Closed Lost, the custom field on the opportunity will be updated automatically. This will save time and effort for the Sales Ops team and help to increase productivity.