You need to sign in to do that
Don't have an account?
shweta chadha 4
Need to update the value of related to "Company" field on Task object (if it is null) based on the related to Contact field value.
Hello,
I need to write a trigger to update the value of Related to company field ( if it is null only) on the task object based on the related to contact field value. Please help me how can I achieve this.
Thanks, Shweta
I need to write a trigger to update the value of Related to company field ( if it is null only) on the task object based on the related to contact field value. Please help me how can I achieve this.
Thanks, Shweta
Please check the below Code:
Please like and mark it as best answer if you find it positive.
Thanks
Jolly Birdi
All Answers
Please check the below Code:
Please like and mark it as best answer if you find it positive.
Thanks
Jolly Birdi
Thank you for your reply. I do need to pre-fill the value before submitting the record. I meant need to do on before insert.
Thanks, Shweta
For this you check the below code, the changes you will made in the newTask it will automatically update the tasks values.
Please like and mark it as best answer if you find it positive.
Thanks
Jolly Birdi