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
WT007WT007 

How to Set the sandbox instance through .NET?

Hello,

 

Currently I have a requirement with a VB.NET application to connect

to salesforce, but via the sandbox instance.  One way to do it is to

modify the partner.WSDL as follows

 

<!-- Soap Service Endpoint -->
    <service name="SforceService">
        <documentation>Sforce SOAP API</documentation>
        <port binding="tns:SoapBinding" name="Soap">
            <soap:address location="https://test.salesforce.com/services/Soap/u/10.0" />
        </port>
    </service>

 

Problem is that the app needs to be compiled each time so a method

via .NET would be preferable.

 

Thanks in advance.

 

Rich Spector

Software Engineer /Catapult Data Services.

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
the binding object has a URL property that you can set before you call login.