I recently updated to Suite CRM 8.6.2. A few years back, I wrote a program that Creates / Updates accounts in the CRM from our internal business software databases using the V8 API. After the update the creation of new CRM accounts and the updating of existing CRM Accounts works for the most part, however, on the update, the Account email address is no longer updating to the new value.
I have been using the “email1” field to create/update the account.
This still creates the account with the correct email address and sets it as primary automatically but it no longer seems to work for the update.
I have attempted to change my UPDATE code to use the following method:
- Create a new email address
- Get the currently related email address id.
- Delete the Account-Email relationship.
- Delete the old email address.
- Create the Account-Email relationship for the new email address.
All of this works, however, I do not see a way to set the new email address as the primary address.
Any Ideas?
Thanks.