function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
WPCMSWPCMS 

How to Prevent an Object from being created by an opportunity status

Our opportunities have statuses. When they are at prospect status, how do I prevent users from creating objects off of this opportunity?

 

I do not know where to start to develop this. Any ideas?

 

Thank you in advance.

sumitasumita

Could not get what u mean by "revent users from creating objects off of this opportunity"..

Plz elaborate..

 

 

Also, you could write a trigger on before insert/before update on 'the object that could be created',

and prevent it from being created after validating the opp status.

 

Tell me if that helps..

 

 

~S

WPCMSWPCMS
"revent" was supposed to be "prevent". As for your suggestion, could you elaborate a little more? Is this something I need to add to my custom button when they create the object?
sumitasumita

if u want to prevent opps being created..then u cud write a trigger which runs on before insert/before update which checks the status of the opportunity..and gives an error if it is at prospecting stage..

nothing to do with the custom button..

 

~S