Salesforce Certified Platform Developer II — Question 179
A developer is asked to create a Lightning web component that will be invoked via a button on a record page. The component must be displayed in a modal dialog.
Which three steps should the developer take to achieve this? (Choose three.)
Answer options
- A. In targets, add lightning_RecordAction as a target.
- B. In targetConfigs, add lightning_AppPage as a target.
- C. Set actionType to ScreenAction.
- D. Add a targetConfig and set targets to lightning_RecordAction.
- E. Set eventType to Action.
Correct answer: A, C, D
Explanation
The correct steps involve adding lightning_RecordAction as a target, setting actionType to ScreenAction, and creating a targetConfig for lightning_RecordAction. The other options either pertain to incorrect targets or settings that do not apply to rendering the component in a modal dialog.