Salesforce Certified OmniStudio Developer — Question 42
A developer needs to configure a calculation procedure to calculate the sum of the entire BasePrice.
What is the most efficient way for the developer to meet this requirement?
Answer options
- A. Add a Calculation Step as SUM(BasePrice).
- B. Add an Aggregation Step as SUM(BasePrice).
- C. Create a Postprocessor apex class to calculate the sum.
- D. Create a Preprocessor apex class to calculate the sum.
Correct answer: B
Explanation
The correct answer is B because using an Aggregation Step is specifically designed for summarizing data efficiently, making it the most suitable choice for calculating totals. Option A is incorrect as a Calculation Step does not focus on aggregation. Options C and D involve more complex coding and are not as direct or efficient for this requirement.