You need to sign in to do that
Don't have an account?
Merry S
Trigger to update a field on the contact based on the last person to log an activity
Hello, I am looking for some help with creating a trigger that will update a field named "Last Person Worked" on the contact based on the assigned user of the newest activity related to the contact. I am new to developing in general and though I wanted to tough this out and figure out for myself the need has become more critical. Any help would be greatly appreciated.
Here is a trigger on Task that I wrote, that will update the Contacts last person worked field every time a new task is inserted. You probably want to write a similar trigger for the Event obejct too, but I believe you can edit this code to do that.
I hope this helps!
All Answers
Here is a trigger on Task that I wrote, that will update the Contacts last person worked field every time a new task is inserted. You probably want to write a similar trigger for the Event obejct too, but I believe you can edit this code to do that.
I hope this helps!
nice work
This was exactly what I needed. Thank you so much. :)