Plugin / Gravity Forms Salesforce Add-on

Katz Web Services, Inc.

Frequently Asked Questions (FAQ)

Upload plugin files to your plugins folder, or install using WordPress’ built-in Add New Plugin installer Activate the plugin Go to the plugin settings page (under Forms > Settings > Salesforce Add-on ) Choose your Integration Method (API or Web-to-Lead) API Select API as your Integration Method Click Save Settings. Click the “Salesforce: API” menu in the current settings Click the “Login with Salesforce” button Log in to Salesforce.com Click on the Forms > Salesforce menu link to create a feed Follow the steps to create a feed Web-to-Lead Select Web-to-Lead as your Integration Method Click Save Settings Go to the Gravity Forms Forms page (the Forms menu) Edit the form you want to connect with Salesforce On the Edit Form page, under “Form Settings”, click the “Salesforce: Web-to-Lead” link Click the link to create a feed If you are using the Web-To-Lead Add-on you must have Web-To-Lead enabled. Read how to enable Web-to-Lead on Salesforce.com.
This is a known issue. We’ve tried everything to get this working, but Salesforce won’t accept any submitted DateTime formats. Here’s how to enable the functionality. If you find a solution, let us know on that page.
Please check the box “Enable Salesforce debugging emails” in the Web-to-Lead settings page. Salesforce will send you an email with a reason the lead or case wasn’t added.
See “Web-to-Lead: How do I create a Feed” below.
Go to the plugin settings page (under Forms > Settings > Salesforce Add-on ) Choose your Integration Method (API or Web-to-Lead) Select API as your Integration Method Click Save Settings. Click the “Salesforce: API” menu in the current settings Click the “Login with Salesforce” button Log in to Salesforce.com Click on the Forms > Salesforce menu link to create a feed Follow the steps to create a feed
To create a feed: Go to the plugin settings page (under Forms > Settings > Salesforce Add-on ) Select Web-to-Lead as your Integration Method Click Save Settings Go to the Gravity Forms Forms page (the Forms menu) Edit the form you want to connect with Salesforce On the Edit Form page, under “Form Settings”, click the “Salesforce: Web-to-Lead” link Click the link to create a feed
The Salesforce debugging emails are sent to the website administrator by default. To modify this, add a filter to gf_salesforce_salesforce_debug_email_address that returns an email address.
To associate a Web-to-Lead with a Campaign, you must also set the “Member Status”. Read the Salesforce help article Add two fields to your form: “Campaign ID” – The “Campaign ID” form field will be a hidden field. Add a hidden field, click the “Advanced” tab, and add the ID of the Campaign you want to add the entry to (it will look something like 902A0000000aBC1). For Advanced Users: Alternately, you can make this form a Radio Button field with different Campaign IDs values for different options. “Member Status” – Your campaign has different statuses for campaign members, such as “Sent” and “Responded”. You can either create a hidden field with a pre-determined value, or a Radio Button field with different status options. The values should match up with your Salesforce Campaign Status options. Save the form Go to Form Settings > Salesforce: Web-to-Lead Create a Feed or edit an existing Feed (see “Web-to-Lead: How do I create a Feed?” above for more information) Find the “Campaign ID” row and select the Campaign ID field you just created Find the “Member Status” row and select the Status field you just created Save/Update the Feed. There you go!
If you are submitting to a “Multi PickList” field in Salesforce, the values need to be separated with ‘;’ instead of ‘,’. Add a filter to your functions.php file: add_filter('gf_salesforce_implode_glue', 'change_salesforce_implode_glue'); /** * Change the way the data is submitted to salesforce to force submission as multi picklist values. * @param string $glue ',' or ';' * @param array $field The field to modify the glue for * @return string ',' or ';' */ function change_salesforce_implode_glue($glue, $field) { // Change this to the Salesforce API Name of the field that's not being passed properly. $name_of_sf_field = 'ExampleMultiSelectPicklist__c'; // If the field being checked is the Salesforce field that is being truncated, return ';' if($field['inputName'] === $name_of_sf_field || $field['adminLabel'] === $name_of_sf_field) { return ';'; } // Otherwise, return default. return $glue; }
gf_salesforce_wsdl – Path to the WSDL (string) gf_salesforce_proxy – Proxy settings as an object with properties host, port (integer, not a string), login and password (object, ideally a ProxySettings object) gf_salesforce_soap_options Additional options to send to the SoapClient constructor. (array) See http://php.net/manual/en/soapclient.soapclient.php gf_salesforce_connection – Modify the SforcePartnerClient object before it’s returned. See the FAQ item above for an example of using a filter.
No, you only need one, and the API plugin is recommended: the Web-to-Lead plugin is no longer being actively developed. If you are using Web-to-Lead, you don’t need the API plugin activated. If you are using the API plugin, you don’t need the Web-to-Lead activated.
Your server must support the following: PHP 5.x SOAP Enabled SSL Enabled cURL Enabled OpenSSL Enabled
Add the following to the bottom of your theme’s functions.php file, before ?>, if it exists: add_filter('gf_salesforce_enterprise', '__return_true');
This feature support was added in version 1.1.1. gf_salesforce_lead_source is the filter. Add the following to your theme’s functions.php file. Modify as you see fit: add_filter('gf_salesforce_lead_source', 'make_my_own_lead_source', 1, 3); function make_my_own_lead_source($lead_source, $form_meta, $data) { // $lead_source - What was about to be used (normally Gravity Forms Form Title) // $form_meta - Gravity Forms form details // $data - The data passed to Salesforce return $lead_source; // Return something else if you want to. }
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; }
You can. When you are trying to map a custom field, you need to set either the “Admin Label” for the input (in the Advanced tab of each field in the Gravity Forms form editor) or the Parameter Name (in Advanced tab, visible after checking “Allow field to be populated dynamically”) to be the API Name of the Custom Field as shown in Salesforce. For example, a Custom Field with a Field Label “Web Source” could have an API Name of SFGA__Web_Source__c. You can find your Custom Fields under [Your Name] → Setup → Leads → Fields, then at the bottom of the page, there’s a list of “Lead Custom Fields & Relationships”. This is where you will find the “API Name” to use in the Admin Label or Parameter Name. If that doesn’t work If the fields are not submitting properly still, you may need to try a different approach: under “Lead Custom Fields & Relationships”, click on the name of the field. The URL of the page you go to will be formatted like this: https://na123.salesforce.com/12AB0000003CDe4?setupid=LeadFields. You want to copy the part of the URL that looks similar to 12AB0000003CDe4. Use that value instead of the API Name.
Salesforce makes this a little difficult, sorry! You need to add the following to your theme’s functions.php file: add_filter('gf_salesforce_use_datetime', 'filter_the_gf_salesforce_datetime', 10, 3); /** * Modify whether to use Date/Time format instead of Date based on the field key. * @param boolean $use_datetime Whether to use Date/Time. * @param string $key Key of field. * @param array $vars Array of relevant data: 'form', 'entry', 'field', 'feed' * @return boolean True: Use "Date/Time" format; False: use "Date" format */ function filter_the_gf_salesforce_datetime($use_datetime = false, $key = '', $vars = array()) { // CHANGE THE NAME BELOW to the field name you want to use Date/Time for! if($key === 'MY__Custom_DateTime_Key') { return true; } // If it's not a match, use default (Date) return $use_datetime; } If that doesn’t work, you can modify the format for the date by using this code: add_filter('gf_salesforce_format_date', 'modify_gf_salesforce_format_date'); /** * The default is US-style, though Salesforce recommends Y-m-d\'\T\'H:i:s * You can use any date formatting as shown here: * @link http://php.net/manual/en/function.date.php */ function modify_gf_salesforce_format_date($previous = '') { $date_format = 'Y-m-d\'\T\'H:i:s'; return $date_format; }
Add this to the bottom of your theme’s functions.php file to force loading even if a SOAPClient class does not exist: add_filter( 'gf_salesforce_soap_is_available', '__return_true');
Make the value of checkboxes 1 in Gravity Forms. See how to do that here.
This plugin is released under a GPL license.

Ratings

3.7
22 reviews

Rating breakdown

Details Information

Version

3.1.2

First Released

09 Jan, 2014

Total Downloads

53,749

Wordpress Version

3.3 or higher

Tested up to:

4.2.25

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.