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
Guilherme FossalussaGuilherme Fossalussa 

Creation of a Validation Rule

I need help writing a validation rule in Accounts that works like this:
If the Creator User has the Business_Unit_c field equal to "TSEB", then theCommercial_DiscountC field must be filled in. And if the Commercial_discount_c field is equal to "Yes", then the Discount_C field must also be filled in.
Best Answer chosen by Guilherme Fossalussa
VamsiVamsi
Hi, 

Create 2 validaton rules on Account object as below.

1. AND ($User.Business_Unit_c = "TSEB" , ISBLANK(Commercial_DiscountC))
2. AND(ISPICKVAL(Commercial_DiscountC,"Yes"), ISBLANK(Discount_C) )

Hope this helps ...!!

Please mark as best answer if the above helps ...!!