
CreatedDate - DATEVALUE( ISPICKVAL( Opportunity_Product_Status__c, Won))
I keep getting this "Error: Field Won does not exist. Check spelling."
Can anyone make any recomendations on how to do this?
4 个回答
Danielle, the following syntax is incorrect:
CreatedDate - DATEVALUE( ISPICKVAL( Opportunity_Product_Status__c, Won))
1. CreatedDate is actually a datetime field so you need to wrap it inside a DATEVALUE function.
2. You must create a custom date field (Won Date) on Opportunity Product object to capture the date when the Opportunity Product Status is set to 'Won'. This would be done via a workflow rule and field update. DATEVALUE cannot be wrapped around an ISPICKVAL statement to extract the date value out of it.3. After doing the above, the formula would be:
Won_Date__c - DATEVALUE(CreatedDate)
And that's it.