OK, so try number two is as follows.
- Export Contact data for entire database
- Trim down columns in Excel until we just have the address fields left, and the company name.
- Construct the query with this data in the form UPDATE accounts SET billing_address_street="24 St. Martin’s Place", billing_address_city="London", billing_address_state="", billing_address_postalcode="W1A 1XP", billing_address_country="UK", date_modified=now(), modified_user_id="1" WHERE name="ABC Company";
- Use autofill to propagate the query down to the other fields.
- Export the sheet to a text file
- Fix formatting issues with regular expression searches
- Run the query.
Well its pretty ugly, and it suffers from the problem that the LAST contact for that company has the wrong address or a blank one, that is the one a company inherits. But this should get 95% of the Addresses. Anyone got a better way before I pull the trigger. Still hoping for that magic button ...
Bookmarks