Salesforce
PDII · Question #272
A company has a custom object Sales_Help_Request_c that has a Lookup relationship to Opportunity. The Sales_Help_Request_c has a number field, Number_of_Hours_c, that represents the amount of time…
The correct answer is A. A trigger on Sales_Help_Request_c. See the full explanation below for the reasoning.
Question
A company has a custom object Sales_Help_Request_c that has a Lookup relationship to Opportunity. The Sales_Help_Request_c has a number field, Number_of_Hours_c, that represents the amount of time spent on the Sales_Help_Request_c. A developer is tasked with creating a field, Total_Hours_c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request_c records related to that Opportunity. What should the developer use to implement this?
Options
- AA trigger on Sales_Help_Request_c
- BA roll-up summary field on the Opportunity object
- CA trigger on the Opportunity object
- DA workflow rule on the Sales_Help_Request_c object
How the community answered
(49 responses)- A76% (37)
- B6% (3)
- C4% (2)
- D14% (7)
Community Discussion
No community discussion yet for this question.