When integrating HubSpot Contacts with Google Contacts, direct mapping of the Emails, PhoneNumbers, and Addresses fields can lead to an error, because these fields are structured differently in each system.
A single entry in the Google Contacts Emails field looks like this:
[{"Address":"example@mail.com","Type":"other","IsPrimary":true}]To resolve the mapping error, use an expression on the HubSpot to Google Contacts mapping to wrap the single HubSpot value into the array format that Google Contacts expects.
For the Emails field, use an expression similar to:
"[{\"Address\":\"" + Email + "\",\"Type\":\"other\",\"IsPrimary\":true}]"For the PhoneNumbers field, use an expression similar to:
"[{\"PhoneNumber\":\"" + (DT_WSTR, 30)[MobileNumber] + "\",\"Type\":\"Mobile\"}]"For the Addresses field, use an expression similar to:
"[{\"Country\":\"" + [Country] + "\",\"City\":\"" + [City] + "\",\"Street\":\"" + [Street] + "\",\"Type\":\"other\"}]"If the expression mapping above does not resolve the issue, submit a request through our support ticket form with details of your integration.