Salesforce
PDII · Question #279
Ursa Major Solar has a custom object, ServiceJob_c, with an optional Lookup field to Account called Partner_Service_Provider_c. The TotalJobs_c field on Account tracks the total number of…
The correct answer is A. Create an Apex trigger on ServiceJob_c. See the full explanation below for the reasoning.
Question
Ursa Major Solar has a custom object, ServiceJob_c, with an optional Lookup field to Account called Partner_Service_Provider_c. The TotalJobs_c field on Account tracks the total number of ServiceJob_c records to which a partner service provider Account is related. What should be done to ensure that the TotalJobs_c field is kept up to date?
Options
- ACreate an Apex trigger on ServiceJob_c.
- BChange TotalJobs_c to a roll-up summary field.
- CImplement a workflow cross-object field update.
- DBuild a Process Builder with an invocable action.
How the community answered
(42 responses)- A83% (35)
- B10% (4)
- C5% (2)
- D2% (1)
Community Discussion
No community discussion yet for this question.