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

trigger help
Hi
I have an application custom object and recommender custom object, I have an look up relationship from the application to the recommender.I have an pick list field status in both of these objects, and the values are received and not received.Once , I have the status pick list field as received in the recommender custom object, I need even the status pick list field in the application field to automatically change to received.Can anyone give me an idea on writing a trigger to kick start with this....I would appreciate any help...
thank you
Hi,
These what I can suggest:
- Trigger on recommender shall be fired from after update event.
- check whether recommender status has been changed to received. if yest put it in a map by id as key.
- select all applications by recommender lookup id IN map.keySet()
- loop through the result
- change application's status as desire.
- update list application.
Is it help?
Cheers,
Here is somethign that moves from one object to another, should be helpful, does the same thing.