You need to sign in to do that
Don't have an account?
sumit d
trigger to validate opportunity name
Hi All,
i want to Develop a trigger to validate that Opportunity Name should starts with this Format - AccountName : ,
error message should be "Invalid name, Please start name with Account's Name: " - i want to Use custom label for message.
i want that whenever new Oppportunity will be created than the naming of Opportunity should be like this - Exp:- Account name is ABC than the Opportunity name should be - ABC : 1234 OR
ABC : XYZ
if its not in this format than error message will be shown.
Any suggestions how to Achieve this?
i want to Develop a trigger to validate that Opportunity Name should starts with this Format - AccountName : ,
error message should be "Invalid name, Please start name with Account's Name: " - i want to Use custom label for message.
i want that whenever new Oppportunity will be created than the naming of Opportunity should be like this - Exp:- Account name is ABC than the Opportunity name should be - ABC : 1234 OR
ABC : XYZ
if its not in this format than error message will be shown.
Any suggestions how to Achieve this?
Greetings to you!
Please try the below code, I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
i have tried your code,and i have created an opportunity with name : mohan :123
account name : 123
i have an account name amazon so i gave amazon: 123
for all above cases i got error message