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
MC34MC34 

Validation rules when record is created by specific profile.

Hi, 

We have a custom object inquiry  that is accessed by both service reps and sales reps. 

In one process when Inquiry record is created by Service reps and checkbox is marked "convert to opp" it yield an opp that is assigned to the reps.

However, I am noticing that these kind of inquiry records are also sometimes edited by reps (the specific field Contact lookup (Contact__c)  field on inquiries). I would like to create a validation rule that restricts Sales reps with porifles (Field sales, Inside sales, National Accounts) to edit contact look up field on the inquiries that are created by Service. 

Need help with validaiton rule on this. 

Thank you, 
Mit
Best Answer chosen by MC34
AbhishekAbhishek (Salesforce Developers) 
I suspect your query is answered here,

https://trailblazers.salesforce.com/answers?id=9063A000000e3h0QAA


For further reference, you can check this,

https://salesforce.stackexchange.com/questions/281070/validation-rule-for-edit-the-case-for-specific-profile

If it helps you and closes your query by marking it as solved so that it can help others in the future.

Thanks.

All Answers

AbhishekAbhishek (Salesforce Developers) 
I suspect your query is answered here,

https://trailblazers.salesforce.com/answers?id=9063A000000e3h0QAA


For further reference, you can check this,

https://salesforce.stackexchange.com/questions/281070/validation-rule-for-edit-the-case-for-specific-profile

If it helps you and closes your query by marking it as solved so that it can help others in the future.

Thanks.
This was selected as the best answer
MC34MC34
That did the work! Thank you Abishek