API を使用して自分の組織にログインするには、どのエンドポイント値を使用する必要がありますか? 一般的な Salesforce の URL ではなく、MyDomain の URL を使用できますか?
Salesforce では、エンドポイントの URL 値をインテグレーションコードに「ハードコーディング」することは推奨していません。ベストプラクティスは、login() コールの実行です。
このコールでは、関連するエンドポイントが保持されている、metadataServerUrl の文字列型を持つ LoginResult オブジェクトが返されます。この値を使用して、SOAP エンドポイントを返されたサーバー URL にリセットできます。
具体的には、次のエンドポイントでも正常なログインを開始します。
本番インスタンスの場合 https://login.salesforce.com/services/Soap/c/xx.0/0DF300000000xxS
サンドボックスインスタンスの場合 https://test.salesforce.com/services/Soap/c/xx.0/0DF300000000xxS
または、MyDomain が組織で有効になっている場合は以下を使用できます。https://MyDomain.my.salesforce.com/services/Soap/c/xx.0/0DF300000000xxS
メモ: 「MyDomain」は会社の [私のドメイン] 名に置き換えてください。
000385590

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.