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

Validation on Changing record types

I have 4 record types ( Business1, Business2, Business3, Business4). I want to prevent users from changing record type to Business4 from any other (Busiess1,2,3)

Please advise. Thanks 

Use Validation rule or trigger to check Old value to changed values and generate error 

Use ISCHANGED() to check whether the value of record type has changed. If yes, then compare old value and new value acording to your condition. Let us know if this helps.

Hitendar Singh 9Hitendar Singh 9

Use the below in validation rule. This will prevent user from selecting recordtype as business4 from any other record type

(recordtype = 'Business4') && NOT(ISBLANK(PRIORVALUE(recordtype)))

Hope this helps
Amit Chaudhary 8Amit Chaudhary 8
	RecordType.Name = 'Business4',

Please try above and let us know if that will help u