Support » Plugin: Gravity Forms Salesforce Add-on » Hook/Filter for $conn/api object

  • Resolved Seth Carstens


    First, thanks for sharing your plugin. The code is very well organized and uses great coding standards. Unfortunately I have had to hack your plugin, in order to get it to work for us. Why? You have absolutely no hooks or filters! I would like to “not hack” your plugin so that I can use any updates you make so I offer you the following suggestion, at minimum:

    In salesforce-api.php around line 665 add the following BEFORE updating the self::api:

    $conn = apply_filters('gfsf_modify_connection', $conn);

    Why? The SOAP calls default the AssignmentRuleHeader to “false”, so none of our leads are getting assigned properly. Here is the code in our “custom functions.php file” that in conjuction with this filter allows our leads to follow there proper lead assignment:

    add_filter('gfsf_modify_connection', 'enable_assignment_rules');
    function enable_assignment_rules($conn){
    						$header = new AssignmentRuleHeader(NULL, true);
    						return $conn;

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Zack Katz


    This was added in 2.3.2 – thanks for the recommendation (sorry I didn’t see it sooner).

    Please continue submitting pull requests to Github: – thanks!

    Zack – Again, you are the best. Start charging for this plugin… Yea, I said it. I have installed 2.3.2 and am still having the assignment issue after submission. As stated above “so none of our leads are getting assigned properly.” I am still having a problem with this. Can you help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hook/Filter for $conn/api object’ is closed to new replies.