You need to sign in to do that
Don't have an account?
Ajay Kumar 583
How to Sovle this?
Hi,
On Lead Record, email field must contain the first word of Lead Company field after the character ‘@’.
Thanks,
On Lead Record, email field must contain the first word of Lead Company field after the character ‘@’.
Thanks,
Try this trigger handler and also inactive validation rule if you have created on Email field:
Thanks,
Ajay Dubedi
All Answers
You can do this with the help of trigger or validation rule:
Try this trigger:
Handler class:
Also try this validation rul:
Error Condition Formula : NOT(CONTAINS(Email , '@'+Company))
Error Message : Invalid Email...
Apply this rule on Email field of Lead Object.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
It wont work as per my logic.
For example if Lead company Name is : Indian Inc
One needs to provide Indian word in the Email field after the @ character.
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
Try this trigger handler and also inactive validation rule if you have created on Email field:
Thanks,
Ajay Dubedi
Its not working.
Thanks
Add dubug after every line of your code and check the result.
In my org this working fine.
And also try this logic: Thanks,
Ajay Dubedi
It Worked