• I was having an issue where some fields were not being updated in Infusionsoft for existing contact records. After much testing and troubleshooting I determined (with the help of the logs!) that the issue was NULL values being passed in the $merge_vars array. Removing the NULL values from the array resolved the issue for me.

    Here’s how I did it:

    Add a new filter to the plugin by modifying the infusionsoft.php file. I added it after the foreach loop in the export_feed() function around line 1693:

    $merge_vars = apply_filters('gf_infusionsoft_merge_vars', $merge_vars);

    Then in the theme’s functions.php or a custom functions plugin add something like this:

    add_filter('gf_infusionsoft_merge_vars', 'mycustom_gf_infusionsoft_merge_vars');
    function mycustom_gf_infusionsoft_merge_vars($merge_vars) {
    	foreach( $merge_vars as $key => $value ) {
    		if( $value == '' ) {
    			unset($merge_vars[$key]);
    		}
    	}
    	return $merge_vars;
    }

    Infusionsoft Gravity Forms Add-on team: Could the gf_infusionsoft_merge_vars filter be added in the next update?

    https://wordpress.org/plugins/infusionsoft/

  • The topic ‘Issue with NULL values in mapped fields’ is closed to new replies.