Gravityforms Advanced Post Creation

<?php

add_action( 'gform_advancedpostcreation_post_after_creation', function( $post_id ) {
    if ( function_exists( 'FWP' ) ) {
        FWP()->indexer->index( $post_id );
    }
});