Salesforce
PDII · Question #315
A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set. What is the optimal way to achieve this?
The correct answer is C. Create an Apex trigger, execute a Queueable job from it, and make a callout from the Queueable. See the full explanation below for the reasoning.
Question
A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set. What is the optimal way to achieve this?
Options
- ACreate a Worfklow Rule, execute a Queueable job from it, and make a callout from the Queueable
- BCreate a Before Save Flow, execute a Queueable job from it, and make a callout from the
- CCreate an Apex trigger, execute a Queueable job from it, and make a callout from the Queueable
- DCreate a Process, execute a Queueable job from it, and make a callout from the Queueable job.
How the community answered
(55 responses)- A4% (2)
- B5% (3)
- C80% (44)
- D11% (6)
Community Discussion
No community discussion yet for this question.