You need to sign in to do that
Don't have an account?
Trigger not being called - Mass Update Addresses
I have a trigger for the Contact object (before insert, before update) that works perfectly in all situations I have tested so far - except for one. When I attempt to use the 'Mass Update Addresses' feature to update a country or state/province field, my trigger is not called. The wizard nicely informs me that it is going to update the appropriate field on the Contact record, but then never calls my Contact trigger.
Is this because somewhere behind the scenes it is updating the address information in another physical location (say an internal address table) instead of fields directly on the contact object itself? This is the only rationale I can think of for this behavior.
Can anyone shed some light on the situation for me?
This is pretty problematic for me since the trigger needs to do some important stuff whenever the value in the state/province or country field changes.
Thanks in advance for any assistance you can provide.
Have you tested any other bulk scenarios? That is where multiple records are updated together?
My guess would be that the trigger is not bulk ready, and so, only updates the first record in the set being updated.
Could you post your trigger code? It should include some type of loop on the Trigger.new object array in order to process all records.
All Answers
Have you tested any other bulk scenarios? That is where multiple records are updated together?
My guess would be that the trigger is not bulk ready, and so, only updates the first record in the set being updated.
Could you post your trigger code? It should include some type of loop on the Trigger.new object array in order to process all records.