WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Salesforce Add-on
[resolved] Hook/Filter for $conn/api object (3 posts)

  1. Seth Carstens
    Member
    Posted 1 year ago #

    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);
    						$conn->setAssignmentRuleHeader($header);
    						return $conn;
    }

    http://wordpress.org/extend/plugins/gravity-forms-salesforce/

  2. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    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: http://github.com/katzwebservices/Gravity-Forms-Salesforce - thanks!

  3. axiomuser
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.