• We would like to update a custom field.
    We are able to query the custom field like so: $data_service->load($contact_generated, $contact_id, array(‘_fieldName’));

    However, I have not found a good way to update that field. I know there are functions made just for this, but I cannot get them to pull in this custom field.

    Anyone know how to do this?

    https://wordpress.org/plugins/infusionsoft-for-developers/

Viewing 1 replies (of 1 total)
  • Thread Starter jamesbAtPK

    (@jamesbatpk)

    I was actually able to figure this out. Not sure if it is “technically” the correct way, but it does work.

    $contact_service = new Infusionsoft_ContactService();
    
    //this will return the same $contact_id that was sent on success and a 0 (or error out) on failure.
    $contact = $contact_service->update( $contact_id, array('_FieldName' => $new_value) );
Viewing 1 replies (of 1 total)
  • The topic ‘Update a Custom Field’ is closed to new replies.