You need to sign in to do that
Don't have an account?
Evgenii Gill
how to write trigger that should check the length of the Description field; if the field is longer than 200 characters, you need to trim it to 197 characters and add a three-dot at the end of the line.
I am new in Apex, please help me to write trigger that should check the length of the Description field; if the field is longer than 200 characters, you need to trim it to 197 characters and add a three-dot at the end of the line.
Try the below code it will help you:
//Trigger code
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
All Answers
Try the below code it will help you:
//Trigger code
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi