Study for the Salesforce Platform Developer Exam. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Practice this question and more.


What would a developer do to update a picklist field on related Opportunity records upon a modification to the associated Account record?

  1. Create a process with Process Builder

  2. Create a workflow rule with a field update

  3. Create a Lightning Component

  4. Create a Visualforce page

The correct answer is: Create a process with Process Builder

Creating a process with Process Builder is the most suitable choice for updating a picklist field on related Opportunity records when an associated Account record is modified. Process Builder is designed for automation tasks and can handle such scenario-based updates efficiently. With Process Builder, a developer can create a process that watches for changes in the Account record. When a specified change occurs, the process can automate the update to the related Opportunity records by defining criteria for which records to update and specifying the new values for the picklist field. This tool allows for a user-friendly, declarative approach to such automations, making it easy to manage complex logic without the need for writing code. In contrast, creating a workflow rule with a field update could be limited in functionality, as workflow rules have been increasingly deprecated in favor of Process Builder. Workflow rules cannot handle multiple updates or more complex decision-making logic as flexibly as Process Builder. A Lightning Component and a Visualforce page are not appropriate for the task as they are mainly used for user interface development rather than for automating processes or handling background updates on record changes. These tools are geared more toward creating custom user experiences rather than performing maintenance tasks like the one described. By choosing Process Builder, the developer takes advantage of a powerful automation