function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David-David- 

Partner Portal: Tip for toggling between test/production environments

If you run a salesforce.com test instance (test.salesforce.com) and you want to run your partner portal in a parallel dev/test environment, here's configuration-based approach to accomplish this:

1) Add to Config.properties

# Salesforce Endpoint
salesforce.endpoint=https://test.salesforce.com/services/Soap/u/5.0;

2) Edit \WEB-INF\src\java\com\sforce\soap\partner\SforceServiceLocator.java

private final java.lang.String Soap_address = (String) props.get("salesforce.endpoint");

3) In your production environment's Config.properties...

salesforce.endpoint=https://www.salesforce.com/services/Soap/u/5.0;