Endpoint
Default Value | Data Type | Required |
---|---|---|
|
String |
Yes, if using OAuth or SSO authentication, or connecting to a sandbox system. |
Description
A complete endpoint URL. The exact endpoint that you need to specify depends on the type of authentication you are using and whether or not you are connecting to a sandbox system.
- For OAuth authentication: Set this property to
[InstanceURL]/services/Soap/u/52.0
, where [InstanceURL] identifies the Salesforce instance that your application sends API calls to. For example,https://na11.salesforce.com/services/Soap/u/52.0
. For more information, see Using OAuth. - For SSO authentication: Set this property to the URL of the server that receives web services requests. The URL is available after a successful login from the
LoginResult
object using thegetServerUrl()
method. For more information, see Using Single Sign-On. - For User Name and Password authentication: This property must specify the authentication endpoint URL. In some cases, you can use the default
Endpoint
value, so you do not need to explicitly specify this endpoint. However, if you are connecting to a sandbox or custom domain, then you do need to specify a differentEndpoint
value. For more information, see Using User Name And Password. - For connecting to a sandbox system: Set this property to
https://test.salesforce.com/services/Soap/u/52.0
.