Title: Salesforce API Gravity
Last modified: February 24, 2018

---

# Salesforce API Gravity

 *  [alfo72](https://wordpress.org/support/users/alfo72/)
 * (@alfo72)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/salesforce-api-gravity/)
 * I have found the “fix” to the Lead Assignment rules not being triggered in Salesforce
   but I am not clear where the “fix” should be implemented.
 * It simply reads:
 *     ```
       add_action('gf_salesforce_connection', 'gf_salesforce_set_default_assignement_rule');
   
       function gf_salesforce_set_default_assignement_rule($client) {
           //  Two Options for Setting Assignment Rule
           //    1.  Pass in AssignmentRule ID and "false" to use a specific assignment rule.
           //    2.  Pass in null and true to trigger the DEFAULT AssignementRule
           $header = new \AssignmentRuleHeader(null, true);
   
           $client->setAssignmentRuleHeader($header);
   
           return $client;
       }
       ```
   
 * Does this exist somewhere or does this need adding somewhere to the php?

The topic ‘Salesforce API Gravity’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravity-forms-salesforce_fbfdff.svg)
 * [Gravity Forms Salesforce Add-on](https://wordpress.org/plugins/gravity-forms-salesforce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-salesforce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-salesforce/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-salesforce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-salesforce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-salesforce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [alfo72](https://wordpress.org/support/users/alfo72/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/salesforce-api-gravity/)
 * Status: not resolved