Skip to main content
Ana Rottaro a posé une question dans #Formulas
I have the following validation rule and I want it to only prevent creation of new opportunities if one already exists and is open (what Count of Opportunities is counting). However, I had an account executive unable to Close Won an existing Opportunity which is the only opp on the account because of it.  

AND(

Account.Count_of_Opportunities__c>0,

$User.Title == "Account Executive",

isnew()

)
3 réponses
  1. 28 janv. 2020, 17:50
    Hi Ana,

    The formula looks good and it should work as expected only preventing to create new opps if there is atleast one opportunity existing on the account. (I tested in my org with same and its wokring fine).

    Please verify if there are any other similar validation rules on opportunities preventing user to edit. Also cross verify if the error message on the record is matching with your current validation rule error message.

    Hope this helps!

    Thanks
0/9000