Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #16

Open
vijayk3327 opened this issue Aug 27, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@vijayk3327
Copy link
Owner

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.

👉 To get source code live demo link, Click Here.

Opportunity Validation Rule
Step 1:- Create Validation Rule : Opportunity_Stage_Validation

`AND(
$Profile.Name <> 'Custom: Support Profile',
RecordType.DeveloperName = 'ecom_record_Type',
ISCHANGED(StageName)
)

/Only Custom: Support Profile user allow can change the stage/`

👉 To get source code live demo link, Click Here.

@vijayk3327 vijayk3327 added documentation Improvements or additions to documentation question Further information is requested labels Aug 27, 2023
@vijayk3327 vijayk3327 self-assigned this Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
Status: No status
Development

No branches or pull requests

1 participant