+ Start a Discussion
shraddha kawaneshraddha kawane 

Trigger :


I have total 5 objects , i need to write a trigger & i am new to trigger basics ? can anyone help please:

1. purchase order
2. Job
3. Variation
4.Job item
now the problem is:

1.Purchase order(D) is detail of Job(M)
2.Variation(D) is detail of Job(M)
3.Job item(D) is detail of Variation(M)
4. Code is Lookup to Job Item(field name is item code)

so I need to write a trigger update the field called Count on purchase order which will have the count of Job item where Item code is 12
Could anyone help me out how to achieve this using maps?
I would recommend reading over some of the following articles about how to get started on triggers.  If you then have any specific question or problems when writing your trigger I can help you.