+ Start a Discussion
uma52551.3972270309784705E12uma52551.3972270309784705E12 

Apex trigger On Task

 Please help in writting apex trigger that will pre populate the task subject as the account name when hititng the new task button.

When I hit the New Task button, the Account name must be  in the Subject. We want it to be there when we hit new, not after we save.
Best Answer chosen by uma52551.3972270309784705E12
uma52551.3972270309784705E12uma52551.3972270309784705E12
Created to trigger for updating the task subject after the task is inserted. Thank you for your help

All Answers

Mark TroupeMark Troupe
You cannot do this with a trigger (well you can but it's alot of work). 

Easier way is to do something like what's described here: http://salesforce.stackexchange.com/questions/937/how-do-i-prepopulate-fields-on-a-standard-layout
uma52551.3972270309784705E12uma52551.3972270309784705E12
Created to trigger for updating the task subject after the task is inserted. Thank you for your help

This was selected as the best answer