You need to sign in to do that
Don't have an account?
Bryn Jones
create a task based on a feild in a contact using apex
Hello,
We have a number of contacts that do not have tasks. Based on a field on the company of the contact we woudl like to create a task for the contact. woudl like to do it using apex so it runs without having to edit objects to get a workflow or process builder to run.
Thanks
Try below snippet.
This will invoke when Status field on Contact is 'Inactive' and creates task.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar