+ Start a Discussion

Can I update all accounts at once? Not using dataloader

We have an object called zipcodelookup that have all the US and Can postal codes and the salespeople for each zip. We have a trigger that assings the people to an account based on the zip code. ( well actually that is in the sandbox and I'm working on mocing it to production).. The trigger works when an account is created or edited. Is there a way to allow me to update all the accounts in my database with this lookup as a batch.  When a new person starts or the assignments change we would like to update all the accounts at once. Can a button be created that would do that? Or some other method?

You can consider using batc apex to update all existing data. Here is one of the posts that talks more on the similar requirement http://stackoverflow.com/questions/10997613/fire-a-trigger-on-existing-data