[SOLUTION] Send Partial Form Data to Zoho CRM

I saw two posts regarding pushing Partial Entry data to Zoho CRM.

1 - Partial Entries Add-On to push data to Zoho updates?

2 - Partial Entries Add-On to push data to Zoho

Just wanted to share the solution for this, incase someone is needing it.

add_action( 'gform_partialentries_post_entry_saved', 'send_to_zohocrm_on_partial_entry_saved', 10, 2 );
function send_to_zohocrm_on_partial_entry_saved( $partial_entry, $form ) {
    if ( function_exists( 'gf_zohocrm' ) ) {
        $partial_entry['status'] = 'partial';
        gf_zohocrm()->maybe_process_feed( $partial_entry, $form );
        gf_feed_processor()->save()->dispatch();
    }
}
1 Like

Can this be done for mail chimp

Well yes, there is a solution for this in the documentation (https://docs.gravityforms.com/gform_partialentries_post_event/#h-1-trigger-mailchimp-feeds)

But I’ll place it here for your convenience:

add_action( 'gform_partialentries_post_entry_saved', 'send_to_mailchimp_on_partial_entry_saved', 10, 2 );
function send_to_mailchimp_on_partial_entry_saved( $partial_entry, $form ) {
    if ( function_exists( 'gf_mailchimp' ) ) {
        $partial_entry['status'] = 'partial';
        gf_mailchimp()->maybe_process_feed( $partial_entry, $form );
        gf_feed_processor()->save()->dispatch();
    }
}