We have a "Primary Contact" lookup (pointing to Contacts) on our Company records. There is also a "Primary Contact?" yes/no field on the Contact record so when a user is viewing a list of contacts, they can see who the primary contact is without having to navigate to the company form. The business requirement is that any company must always have a primary contact assigned. We are forcing the user to update the primary contact through the lookup on the company form. When that value changes, we must update the previous primary contact record's "Primary Contact?" yes/no field with "no" and then update the new primary contact "Primary Contact?" yes/no field with "Yes." What is the best way to do this? I seem to be able to set the new primary contact with "yes" without issue. However, setting the previous primary contact with "No" seems to be the problem--I'm not quite sure how to do this. Any help is appreciated.
↧