PlatformEventTriggerConfig を利用して、Platform イベントトリガーの設定変更が必要になることがあります。
公式ドキュメントには次のように記載されています:
「トリガーが実行中で、プラットフォームイベントに登録されている場合、トリガーを一時停止して再開した後、新しい設定が有効になります。[登録] 関連リストの Apex トリガーの横にある [管理] をクリックすると、プラットフォームイベント詳細ページからトリガーの一時停止と再開ができます。詳細は、「プラットフォームイベントの詳細ページでのイベントのサブスクライバーの表示および管理」を参照してください。」
Platform イベントのサブスクリプションを直接一時停止・再開できるのは、ユーザーインターフェース上からの操作のみとなります。現時点では、プログラム(コード)による処理で一時停止や再開を行う機能は提供されていません。
プラットフォームイベントの登録の管理は、対象となる プラットフォームイベント画面の [登録] 関連リストから、画面操作を通じて行います。
なお、一時的な回避策(ワークアラウンド)として、プログラムから Apex を無効化してトリガーを削除し、再作成することは可能です。この手順を踏むことで、既存の Platform イベントサブスクリプションが一度削除され、該当する自動化処理(トリガーなど)を再び有効化したタイミングで新たなサブスクリプションが作成し直されます。
プラットフォームイベントの詳細ページでのイベントのサブスクライバーの表示および管理
PlatformEventSubscriberConfig の使用によるプラットフォームイベントトリガーのユーザーおよびバッチサイズの設定
002186624

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.