-
Notifications
You must be signed in to change notification settings - Fork 127
Description
I am trying to pass SSN, and FB/IG/Pinterest/Youtube social accounts/URLs to a contact create function:
$contact = array( 'FirstName' => $FNAME, 'LastName' => $LNAME, 'Email' => $EMAIL, 'StreetAddress1' => $STREET, 'City' => $CITY, 'State' => $STATE, 'PostalCode' => $ZIP, 'Country' => $COUNTRY, 'Phone1' => $PHONE, 'SSN' => $SSN, 'FacebookSocialAccountName' => $FacebookSocialAccountName, 'InstagramSocialAccountName' => $InstagramSocialAccountName, 'PinterestSocialAccountName' => $PinterestSocialAccountName, 'YoutubeSocialAccountName' => $YoutubeSocialAccountName, );
and then using this to create that contact:
$contactIDNumber = $infusionsoft->contacts('xml')->add($contact);
But I keep getting this error:
Exception Infusionsoft\Http\HttpException:[NoFieldFound]No field found: Contact.InstagramSocialAccountName at line 34 in file /home/pps/vendor/infusionsoft/php-sdk/src/Infusionsoft/Http/InfusionsoftSerializer.php Infusionsoft\Http\InfusionsoftSerializer->request [ /home/pps/vendor/infusionsoft/php-sdk/src/Infusionsoft/Infusionsoft.php : 456 ] Infusionsoft\Infusionsoft->request [ /home/pps/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/ContactService.php : 13 ] Infusionsoft\Api\ContactService->add [ /home/pps/public_html/infusionsoft.php : 297 ]
which is that specific line.
Why?
I thought "InstagramSocialAccountName" is a standard Contact field... what am I missing?