Skip to content

Social account profile fields in Keap/InfusionSoft throwing errors when trying to ADD new contact?! #295

@crazyserb

Description

@crazyserb

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions