You need to sign in to do that
Don't have an account?
SFDC1admin
Opportunity Validation Rule - HELP PLEASE
Hi all - Hope that someone out there can help me with this issue. I just found out from Customer support (after waiting over 5 days for a response to a logged case) that they (basic support) do not help with validation rules - we need premier support (not an option currently with my company). Anyhow - I am rambling - here is my issue:
I am trying to create a validation rule in Opportunities whereby the sales rep must enter a value in the "Sales Interface Order Number" field when the opportunity stage is Closed Won. Because we are integrated with another system, any opportunity created by the Interface or updated by the Interface is not to be held to the rule. I have set up the rule as follows, however when testing it does not run - HELP!
AND(OR(CreatedBy.Alias <> "FChil", LastModifiedBy.Alias <> "FChil"), ISPICKVAL(StageName, "Closed Won"), ISNULL(Sales_Interface_Order_Number__c))
I am trying to create a validation rule in Opportunities whereby the sales rep must enter a value in the "Sales Interface Order Number" field when the opportunity stage is Closed Won. Because we are integrated with another system, any opportunity created by the Interface or updated by the Interface is not to be held to the rule. I have set up the rule as follows, however when testing it does not run - HELP!
AND(OR(CreatedBy.Alias <> "FChil", LastModifiedBy.Alias <> "FChil"), ISPICKVAL(StageName, "Closed Won"), ISNULL(Sales_Interface_Order_Number__c))
This was so easy and I truly appreciate your quick response to my call for help.
Thank you again.
Linda
Here is my problem, I want to also include in my OR statement additional alias' to be able to update opportunities even if there is no Sales Interface Order Number (SION). I had it written as:
AND( OR($User.Alias <> "FChil", $User.Alias <> "LJohn"), ISPICKVAL(StageName, "Closed Won"), LEN(Sales_Interface_Order_Number__c)=0) and when testing, our Interface user Fchil is no longer able to insert/update records without the SION.
Help please!
I do not see anything obvious. Maybe someone else will see the issue.
Can you paste in the actual code? It looks like what you have here may be missing a parentheses?
AND(NOT(OR($user.alias = "FChil", $user.alias = "LJohn")), ISPICKVAL(StageName, "Closed Won"), LEN(Sales_Interface_Order_Number__c)=0)
By adding the NOT ( ) function in front of the OR, you are making the statement false when the user is either "FChil" or "LJohn". Which is what you are trying to acheive.
Hope this helps and gets you going.