You need to sign in to do that
Don't have an account?

Undelete Trigger
Hi Friends,
I am new to salesforce ,can u any body tell me the way to implement undelete trigger for account
ThanX in Advance
You need to sign in to do that
Don't have an account?
Hi Friends,
I am new to salesforce ,can u any body tell me the way to implement undelete trigger for account
ThanX in Advance
Hi,
the undelete trigger works for recovered records, please find information about this here:
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_triggers_recovered_records.htm
Also, I would look at the rest of the documentation about triggers; in general an undelete trigger works like an after insert trigger:
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_triggers_context_variables_considerations.htm
When writing a trigger, you have to ensure that it processes records in bulk and you don't assume that only one record is being updated/created/undeleted.
For best practices around bulk processing please refer to this article:
http://wiki.developerforce.com/index.php/Apex_Code_Best_Practices
For examples of triggers, you can find recipes in the Force.com cookbook like:
http://developer.force.com/cookbook/recipe/bulk-processing-records-in-a-trigger