Closed RanaDante closed 3 years ago
Instead of
$contact_update = $infusionsoft->update($contact_id, $data);
try:
$contact_update = $infusionsoft->contacts()->update($contact_id, $data);
I tried the provided approach but unfortunately, it didn't work, but I figured out how to update the custom fields, I used
$custom_field_data = [ '_ToBeIncludedInDirectory' => '1', '_DirectoryVisibilityStatus' => $visibility_status, '_MemberDirectoryAddress' => $directory_address, '_AreaOfSpeciality' => 'None']; $contact_update = $infusionsoft->data()->update("Contact", $contact_id, $custom_field_data);
this approach worked perfectly, the issue is resolved now. Thanks for your help.
On Wed, Jun 30, 2021 at 12:31 PM Kevin Yarmak @.***> wrote:
Instead of
$contact_update = $infusionsoft->update($contact_id, $data);
try:
$contact_update = $infusionsoft->contacts()->update($contact_id, $data);
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/infusionsoft/infusionsoft-php/issues/284#issuecomment-871165598, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7QCDOM7HFQ247AO3SIDWDTVLB4JANCNFSM47LVA4XA .
I'm working on a custom solution to update infusionsoft contact's custom fields data using PHP SDK, here is what I've done so far.
Here are the few solutions that I've tried by searching on google, but none of them seems to be working for me.
and
I want to update the custom fields only and after I update them I want to fetch them and display them on the website. Thanks In Advance.