Salesforce Certified Platform App Builder — Question 140
Cloud Kicks (CK) is finding sales reps are inconsistent in data entry when deals are won. CK requires that custom shoes are shipped within two weeks after the close date. A custom field called Scheduled Ship Date on the opportunity records the ship date.
How should the app builder ensure this field is properly filled out before setting the opportunity to closed won?
Answer options
- A. ISPICKVAL( StageName ,ג€Closed Wonג€) && ( Scheduled_Ship_Date__c - CloseDate) > 14
- B. OR(ISPICKVAL( StageName ,ג€Closed Wonג€) && ( Scheduled_Ship_Date__c - CloseDate) > 14, ISBLANK(Scheduled_Ship_Date__c))
- C. OR(ISPICKVAL( StageName =ג€Closed Wonג€) && ( Scheduled_Ship_Date__c - CloseDate) > 14, ISBLANK(Scheduled_Ship_Date__c))
- D. ISPICKVAL( StageName =ג€Closed Wonג€) && ( Scheduled_Ship_Date__c - CloseDate) > 14
Correct answer: B
Explanation
The correct answer is B because it checks if the opportunity is in the 'Closed Won' stage and ensures that either the Scheduled Ship Date is more than 14 days after the Close Date or that the Scheduled Ship Date field is blank. This validation prevents closing the deal without a proper ship date. The other options do not adequately validate that the Scheduled Ship Date is either missing or exceeds the required shipping timeframe.