You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to create new contact person to a contact existing and when there is not any contact person is good the process is adding the new contact person but if I have a contact person added and try to add a new one the existing contact person data is update and I loose the old one.
To do this I use this code:
$contactPerson = new \XeroPHP\Models\Accounting\Contact\ContactPerson($xero);
$contactPerson->setFirstName($row->first_name);
$contactPerson->setLastName($row->last_name);
$contactPerson->setEmailAddress($row->email);
$contactPerson->setIncludeInEmail(true);
$contact->addContactPerson($contactPerson);
$contact->save();
Can you help me please?
Best Regard
Vmax
The text was updated successfully, but these errors were encountered:
Hi,
I try to create new contact person to a contact existing and when there is not any contact person is good the process is adding the new contact person but if I have a contact person added and try to add a new one the existing contact person data is update and I loose the old one.
To do this I use this code:
Can you help me please?
Best Regard
Vmax
The text was updated successfully, but these errors were encountered: