• Taha Khan 7
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi All,
I am very new to development and aI have to change one validation rule on Opportunity into trigger using custom settings.
For example:Validation rule on an opportunity has some profiles, some roles and stage 
something like below-
AND(
ISPICKVAL(StageName ,"Pending"), 
ISPICKVAL(StageName ,"Closed") , 
NOT($Permission.Bypass_Rule_Exclusion), 
$Profile.Name <> " Contractor", 
$UserRole.Name <> "Analyst")

and I need to change this validation rule into trigger.
I can move this hardcoded values to custom settings,but I am not sure how to write a trigger .
Could someone please help me.
Hi All,
I am very new to development and aI have to change one validation rule into trigger using custom settings.
For example:Validation rule on an opportunity has some profiles, some roles and stage 
something like below-
AND(
ISPICKVAL(StageName ,"Pending"), 
ISPICKVAL(StageName ,"Closed") , 
NOT($Permission.Bypass_Rule_Exclusion), 
$Profile.Name <> " Contractor", 
$UserRole.Name <> "Analyst")

and I need to change this validation rule into trigger.
I can move this hardcoded values to custom settings,but I am not sure how to write a trigger .
Could someone please help me.
All help is highly appreciated
Hi All,
I am very new to development and aI have to change one validation rule on Opportunity into trigger using custom settings.
For example:Validation rule on an opportunity has some profiles, some roles and stage 
something like below-
AND(
ISPICKVAL(StageName ,"Pending"), 
ISPICKVAL(StageName ,"Closed") , 
NOT($Permission.Bypass_Rule_Exclusion), 
$Profile.Name <> " Contractor", 
$UserRole.Name <> "Analyst")

and I need to change this validation rule into trigger.
I can move this hardcoded values to custom settings,but I am not sure how to write a trigger .
Could someone please help me.