Skip to main content
Hi,

 

I am creating a workflow, however I realise that I need to create a trigger to set off to complete it.

 

Any help appreciated.

 

I have a Task on a Custom Object which is checking Customer information

 

Once the Task is marked 'Complete' I would like it to mark a checkbox  called 'Quotes Checked" on the Contact.

 

This will then set off a new Task via Workflow Rules under Contact for the Salesperson to Follow up.

 

Thank-you. 
6 answers
  1. Jan 30, 2014, 3:30 AM
    Its def a learning experience. so not only building the trigger is one consideration you have to

     

    - Make sure you bulkify code (so that data imports do not blow your governor limits)

     

    - Make sure you build test classes and get coverage over 75% (or you can't deploy your code)

     

    Since you need to traverse two objects up, you will need to build a MAP object so you only need 2 SOQL queries otherwise you will be forced to have a SOQL in a for look, and thats not good for bulk data.

     

    Keep us posted how you get on
0/9000