Gravity Forms Salesforce Add-on
[resolved] how to use proxy settings (3 posts)

  1. cendris-software-development
    Posted 2 years ago #

    Is there any way I can set the proxy host and port without having to hard code it into SforceBaseClient.php like this:

    $proxy = new ProxySettings();
    $proxy->host = '<my proxy adres>';
    $proxy->port = <portnumber>;

    I'm surprised there are no fields for this in the Gravity forms salesforce settings page, but maybe I'm missing something?


  2. Zack Katz
    Plugin Author

    Posted 2 years ago #

    Support for this is coming in version 2.4 with the filter gf_salesforce_proxy.

  3. cendris-software-development
    Posted 1 year ago #

    Hi Zack, thanks for the update. I'm now trying to add the gf_salesforce_proxy filter to our functions.php, but this is not working.

    The documentation on this filter is not very extensive, so maybe I'm doing something wrong, but I can't figure out what. Can you please elaborate on how to use this specific filter?

    the code in our themes funcions.php looks something like this:

    add_filter('gf_salesforce_proxy ', 'set_proxy');
    function set_proxy(){
    	require_once <path to ProxySettings.php>;
    	$proxy = new ProxySettings();
    	$proxy->host = 'our.proxy.address';
    	$proxy->port = <port integer>;
    	$proxy->login = '';
    	$proxy->password = '';
    	return $proxy;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity Forms Salesforce Add-on
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic