function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jgreene.ax1178jgreene.ax1178 

Simple (Hopefully) Task Trigger

Hey all,

I have no clue how to build triggers, but i know I need one to update a custom field on the task object.

Basically, I need the trigger to look up whatever the tasks are related to, take a bit of that name (we'll call it an office location) and then based upon that name, update the custom task field (which would take that very name we're looking at to make the trigger fire).

Any idea on how to do this?  Could someone point me in the right direction?  

Thanks so much!!

-Jake
NehalNehal (Salesforce Developers) 
Hi,

Please refer to links below that has an example on how you can write trigger:

1.https://developer.salesforce.com/forums?id=906F00000008xp0IAA
2.http://salesforce.stackexchange.com/questions/23055/trigger-to-update-custom-field-from-another-custom-field-on-a-separate-object
3.http://salesforce.stackexchange.com/questions/33990/apex-trigger-class-for-tasks
4.http://stackoverflow.com/questions/21520060/trigger-on-task-salesforce

I hope this helps. Please mark this as a "Best Answer" if this has resolved your issue.