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
hihomeyhihomey 

Setting API endpoint for sandbox users

Hi,
 
We're an AppExchange offering and sandbox users are installing our app. Our backend system interface logs in (via Java) with the user's credentials and it appears that the correct endpoint is not being returned. My understanding is that we need to set the endpoint header to test.salesforce.com.
 
Is there a way via the API to identify sandbox users so that we can handle the SOAP header differently in a programmatic way? 
 
Thanks
SuperfellSuperfell
No, the user will need to indicate at login time that they're using credentials for sandbox, and you'll have to route the request accordingly.