PDI · Question #195
PDI Question #195: Real Exam Question with Answer & Explanation
The correct answer is D: Quick Actions. To replace a Classic JavaScript button that prepopulated fields for new records in Lightning Experience, Quick Actions are the declarative and recommended solution.
Question
Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values. What can the developer use to accomplish this?
Options
- ARecord triggered flows
- BApex triggers
- CValidation rules
- DQuick Actions
Explanation
To replace a Classic JavaScript button that prepopulated fields for new records in Lightning Experience, Quick Actions are the declarative and recommended solution.
Common mistakes.
- A. Record-triggered flows automate processes based on record changes (creation, update, deletion) and execute in the background, rather than providing an interactive UI element for users to initiate record creation with prepopulated values.
- B. Apex triggers are programmatic solutions that execute before or after DML operations on records and are used for complex backend logic, not for replacing a user-facing button that initiates record creation with prepopulated fields.
- C. Validation rules enforce data integrity by preventing records from being saved if they don't meet specified criteria; they do not create records or prepopulate field values.
Concept tested. Quick Actions for record creation
Reference. https://help.salesforce.com/s/articleView?id=sf.actions_overview.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.