WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. cendris-software-development
    Member
    Posted 10 months 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?

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

  2. Zack Katz
    Member
    Plugin Author

    Posted 9 months ago #

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

  3. cendris-software-development
    Member
    Posted 8 months 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;
    }

Reply

You must log in to post.

About this Plugin

About this Topic