The sales operations team has access to modify the Post-Close Follow-up Date and Post-Close Follow-up Comments fields after the opportunity is closed. After the opportunity is closed, the rest of the fields are read only.
How should these requirements be met?
Show answerHide answer
Correct answer: C Use field-level security on page layouts with record types to restrict editing fields,
Explanation
Explanation:This requirement involves controlling field editability based on a record's stage (open vs. closed) and the user's role (sales rep vs. sales operations). The key is that the same field (e.g., Amount) needs to be editable in one context and read-only in another. This requires a combination of tools.
Why C is Correct: This is the standard and most effective solution.
Record Types: Create two record types for the Opportunity object: "Open Opportunity" and "Closed Opportunity."
Page Layouts: Assign different page layouts to each record type.
The "Open Opportunity" layout shows all editable fields for sales reps.
The "Closed Opportunity" layout makes most fields read-only and prominently displays the two "Post-Close" fields for the sales operations team to edit.
Field-Level Security (FLS): FLS is used to ensure that the sales operations team has Edit access to the "Post-Close" fields, while the sales reps might only have Read access (if that is a requirement). FLS controls the fundamental ability to see and edit a field at the object level.
Automation (Workflow/Process Builder/Flow): An automated process (not listed in the answers but implied as the trigger mechanism) is required to automatically change the Record Type from "Open" to "Closed" when the Opportunity stage is set to a closed stage. This is the crucial step that swaps the page layout, changing the field-level behavior for the entire record.
Why A is Incorrect: Field Sets are a developer feature used to group fields for programmatic purposes (e.g., in a Visualforce page or Lightning component). They are not a security or layout tool for declaratively controlling field editability for different user profiles. This option overcomplicates a straightforward layout and security requirement.
Why B is Incorrect: While page layouts can restrict editing by making fields read-only, this setting applies to all users viewing that layout. You cannot make a field read-only for one profile and editable for another on the same page layout. This is why you need different page layouts (assigned via record types) for the "open" and "closed" states. FLS on its own is not granular enough for this requirement.
Why D is Incorrect: Using Field-Level Security (FLS) to mark fields as read-only on the Sales profile would make those fields read-only at all times, even when the opportunity is open. This violates the requirement that sales reps can modify those fields until the opportunity is closed. FLS is a static control, not a dynamic one that changes based on the record's state.
Summary:
The solution dynamically changes the user's experience based on the record's data (its stage). This is achieved by:
Using Record Types to categorize records into "Open" and "Closed."
Using different Page Layouts for each record type to control field editability at the UI level.
Using Field-Level Security to ensure the sales operations team has the underlying permission to edit the specific post-close fields.
Using an Automation Tool to change the record type when the opportunity is closed.
Reference:
Salesforce Help - "Record Types" and "Control Field Access with Page Layouts and Record Types". The documentation explains how record types and page layouts work together to provide different user experiences for different states of the same record.