You need to sign in to do that
Don't have an account?
Syed Abid Shah
How to restrict users from creating a opportunity more than 1 person from an account object
Hi There,
I would like to know is there any possibility to restrict users from creating more than a single opportunity per day by per person on Acount object?
Thanks
Syed
I would like to know is there any possibility to restrict users from creating more than a single opportunity per day by per person on Acount object?
Thanks
Syed
Yes you can do this by trigger Let me know if you want the code for it.
Thanks
Saket Sharma
Please share me the Code?
Thanks
Syed
You can Use this piece of code If it helps you mark it solved.
Regard,
Saurabh
list<opportunity> opp = [SELECT id, name FROM opportunity WHERE createddate = TODAY];
for(opportunity o :trigger.new){
if(o.Accountid != null){
if(opp.size()> 0){
o.addError('You can only create one opportunity today');
}
}
}
}