You need to sign in to do that
Don't have an account?
rvg170550
Use value of Opportunity.createddate
In a validation trigger, I want to use only Opportunities created in 2008;
So, I want to include this condition in my validation trigger.
Problem is to find the correct coding for replacing the ISNEW() by CREATEDDATE >= '2008-01-01'
So, I want to include this condition in my validation trigger.
Problem is to find the correct coding for replacing the ISNEW() by CREATEDDATE >= '2008-01-01'
Rule Name | Opportunity_Category | Active | |
Error Condition Formula | AND(
OR(ISPICKVAL(StageName,"Pending."), ISPICKVAL(StageName,"Tentative."), ISPICKVAL(StageName,"Accepted."), ISPICKVAL(StageName,"Signed."), ISPICKVAL(StageName,"Refused."), ISPICKVAL(StageName,"Cancelled."), ISPICKVAL(StageName,"Declined."), ISPICKVAL(StageName,"Aborted."), ISPICKVAL(StageName,"On Hold.")), ISPICKVAL(Opportunity_Category__c,""), ISNEW() ) | ||
Error Message | As of Stage='Pending', Opportunity Category should be present | Error Location | Opportunity Category |
Description | As of stage = 'Pending', Opportunity Category has to be present | ||
Created By | Roger Vangoidsenoven, 12/02/2008 13:14 | Modified By | Roger Vangoidsenoven, 13/02/2008 10:06 |