LoginSignup
0
0

More than 1 year has passed since last update.

Salesforce で443以外のportで外部にリクエストを送信したい時

Last updated at Posted at 2023-03-18

Salesforce では、送信ポートを以下のいずれかに制限しています。
80: このポートは、HTTP 接続のみを受け付けます。
443: このポートは HTTPS 接続のみを受け付けます。
1024 ~ 66535 :これらのポートは、HTTP または HTTPS 接続を受け付けます。

443以外のポートを使う場合、リモートホスト登録の際指定のポートも含める必要があります。
ポートの記載がないとapexで以下のエラーがスローされます。

common.apex.runtime.impl.ExecutionException: Unauthorized endpoint

以下のようにポート設定します。
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0