You need to sign in to do that
Don't have an account?
Lock down an opportunity after it is closed won?
Does anyone know of a best practice for locking down an opportunity after it is closed won? We want to prevent our sales people from changing the amount or name of the opportunity. Security suggests that I change the record owner but that will mess up our reports. I also thought about using record types and creating a read only page layout but it does not appear that I can make all of the fields read only.
My best idea right now is to create an sforce control that would change the record type and write the opportunity name and amount to a text field on the opportunity. Then display a page layout with that text field as read only and no other fields. Sounds like a lot steps. Any other ideas?
Thanks,
Eric
Eric,
I am afraid your proposed solution is better than any I could think of..I am actually writing to see if you can direct me to information about bulding sforce controls like the won you propose for changing the record type and writing text to fields. There are several situations within our environment where a process like that would be desirable. Do you have any suggestions where I might start to teach myself how to writr that type of sforce control?
Thanks in advance,
Josh
Hope it Helps.
Federico.-
So I created 2 validation rules in my org:
1. To lock the stage:
AND(
ISCHANGED(StageName),
OR(
ISPICKVAL(PRIORVALUE(StageName), "Closed Won"),
ISPICKVAL(PRIORVALUE(StageName), "Closed Lost"),
ISPICKVAL(PRIORVALUE(StageName), "Closed Passed")
),
$Profile.Name <> "System Administrator"
)
2. To lock the fields:
AND(
OR(
ISPICKVAL(StageName, "Closed Won"),
ISPICKVAL(StageName, "Closed Lost"),
ISPICKVAL(StageName, "Closed Passed")
),
$Profile.Name <> "System Administrator"
)