WordPress.org

Ready to get started?Download WordPress

Forums

WordPress-to-lead for Salesforce CRM
[resolved] WordPress Plugin with Custom Domain (5 posts)

  1. cloudify
    Member
    Posted 8 months ago #

    We have a custom domain set for our users to login to "myorg.my.salesforce.com".
    When we tried to install the plugin we received an error "Failed to connect to Salesforce.com".

    Is there a way to modify the plugin to use our custom domain vs. login.salesforce.com?

    http://wordpress.org/plugins/salesforce-wordpress-to-lead/

  2. Nick Ciske
    Member
    Plugin Author

    Posted 8 months ago #

    The plugin doesn’t use login.salesforce.com. It's only interaction with SF is via the web to lead API endpoint:
    https://www.salesforce.com/servlet/servlet.WebToLead

    That should work with any SF account with the organization ID set correctly.

  3. Stony Grunow
    Member
    Plugin Author

    Posted 8 months ago #

    You can test if this is an issue by creating a standard web to lead, and check what the URL is in the form. To create a web to lead, follow

    https://help.salesforce.com/apex/HTViewHelpDoc?id=setting_up_web-to-lead.htm&language=en

    And then take a look at the line that starts <form..

    does it look like

    <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

    or does it look like

    <form action="https://myorg.my.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

    If the first, then the fact you are using a custom domain shouldn't make a difference.

  4. Nick Ciske
    Member
    Plugin Author

    Posted 8 months ago #

    FYI - I'll add a filter to allow you to override the API endpoint the plugin uses, in case it's the latter URL. I'm curious to know either way though!

  5. Nick Ciske
    Member
    Plugin Author

    Posted 8 months ago #

    OK, 2.1 (releasing this week) supports the following filter:

    salesforce_w2l_api_url
    Change the API url the plugin posts data to.

    e.g.

    add_filter( 'salesforce_w2l_api_url', 'my_w2l_api_url' );
    
    function my_w2l_api_url( $url ){
    	return 'https://my.custom-api-url.com/something/';
    }

Reply

You must log in to post.

About this Plugin

About this Topic