Hi Erik,
A comment regarding companies (DB contacts) that are missing a "Our contact".
Defintion: I use the term company and by that mean the entity contact in the DB (so that's clear :))
From a SuperOffice GUI business logic perspective, a company without an "Our contact", is an invalid company that wouldn't be possible to save. Well, there isn't even an option so select "not set" in that listbox in the GUI.
When objects, such as a company, are imported or sometimes created using more low level techniques, it might be possible to create records in the database that doesn't have mandatory fields, such as "Our Contact", filled.
That's the reason for the SetDefaults-function often available (maybe always available) in the Agents-API, so that you always pre set the mandatory fields with default values and then set your own settings. That way the mandatory fields are always set and you ensure the creation of a valid object, from a SO business logic perspective.
So, don't necessary expect invalid objects to behave in expected ways and do clean up your database and make sure that the companies that are invalid by missing an "Our Contact", gets that set. That might save you from trouble in other use cases involving these companies.
That is just my humble, but firm, suggestion. :)
/Marcus