Write Validation rule for StageName of opportunity sObject that don’t allow the user to move Previous/Next Stage based on User/Profile (Except specific profile of user) in Salesforce | how to Stop/Prevent the next and previous stages name of opportunity sObject based on user/profile and record type validation rule in Salesforce

4,019 views


Hey guys, today in this post we are going to learn about How to write a Validation rule for StageName of opportunity sObject that don’t allow the user to move Previous/Next Stage Name based on User/Profile and record type (Except specific profile of user) in Salesforce

โžก Real time scenarios:- Write a Validation rule to Stop/Prevent the next and previous stages name of opportunity sObject based on specific profile/user and record type in Salesforce

โžก Note:- Only “Custom: Support Profile” of Profile of User can allow the change the Stage Name and the record type “developerName” should be (ecom_record_Type).

Note:: โ€“ You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!
   

Final Output

how to Stop/Prevent the next and previous stages name -- w3web.net

 

You can download file directly from github by Click Here.

 
 

Other related post that would you like to learn in Salesforce

  • Find the below steps for this post.

Opportunity Validation Rule

Step 1:- Create Validation Rule : Opportunity_Stage_Validation

Setup >> Object Manager >> Opportunity >> Validation Rule

Opportunity_Stage_Validation [Opportunity Validation Rule]

Note:: โ€“ You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!
 
 
  1.    AND(
  2.   $Profile.Name <> 'Custom: Support Profile',
  3.   RecordType.DeveloperName = 'ecom_record_Type',
  4.   ISCHANGED(StageName)   
  5. )
  6.  
  7. /*Only Custom: Support Profile user allow can change the stage*/

Validation rule for StageName of opportunity -- w3web.net

Further post that would you like to learn in Salesforce

 



 

FAQ (Frequently Asked Questions)

Where are validation rules in Salesforce?

* From Setup, go to Object Manager and click Account. * In the left sidebar, click Validation Rules. Click New. * Enter the following properties for your validation rule: ... * Error Message: Account number must be 8 characters long. * To check your formula for errors, click Check Syntax.

Why do we use validation rule?

A validation rule is one way to restrict input in a table field or a control (such as a text box) on a form. Validation text lets you provide a message to help users who input data that is not valid. ... For example, the Field Size property of a field restricts input by limiting the amount of data.

How do I bypass a validation rule in Salesforce?

Update the validation rule you want the process or flow to bypass by adding a check for the Is Automation Bypassed? field is set to false. If IsAutomationBypassed = true (which your process or flow will update for the formula checkbox to evaluate to true), then the validation rule will be bypassed.

How many types of validation rules are there in Salesforce?

There are five types of Rules in salesforce and the priority of each rule is according to their order.

Related Topics | You May Also Like

 
Note:: โ€“ You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!
 
 
  

Our Free Courses โ†’

๐Ÿ‘‰ Get Free Course โ†’

๐Ÿ“Œ Salesforce Administrators

๐Ÿ“Œ Salesforce Lightning Flow Builder

๐Ÿ“Œ Salesforce Record Trigger Flow Builder

๐Ÿ‘‰ Get Free Course โ†’

๐Ÿ“Œ Aura Lightning Framework

๐Ÿ“Œ Lightning Web Component (LWC)

๐Ÿ“Œ Rest APIs Integration



Hi, This is Vijay Kumar behind the admin and founder of w3web.net. I am a senior software developer and working in MNC company from more than 8 years. I am great fan of technology, configuration, customization & development. Apart of this, I love to write about Blogging in spare time, Working on Mobile & Web application development, Salesforce lightning, Salesforce LWC and Salesforce Integration development in full time. [Read full bio] | | The Sitemap where you can find all published post on w3web.net

Leave a Comment