PlatformStatusAlertEvent
たとえば、ユーザの要求の処理中に数式が評価されるとします。無効な数式の評価でエラーが発生すると、ユーザの要求の処理中にプラットフォームイベントメッセージが生成されることがあります。
サポートされているコール
describeSObjects()
サポートされている登録者
| 登録者 | サポートされているかどうか。 |
|---|---|
| Apex トリガ | ![]() |
| フロー | ![]() |
| プロセス | ![]() |
| ストリーミング API (CometD) | ![]() |
ストリーミング API 登録チャネル
/event/PlatformStatusAlertEvent
特別なアクセスルール
このオブジェクトにアクセスするには、「アプリケーションのカスタマイズ」、「すべてのデータの編集」、または「Next Best Action 戦略を管理」ユーザ権限が必要です。
項目
| 項目 | 詳細 |
|---|---|
| ApiErrorCode |
|
| ComponentName |
|
| EventDate |
|
| EventIdentifier |
|
| EventUuid |
|
| ExtendErrorCode |
|
| RelatedEventIdentifier |
|
| ReplayId |
|
| RequestId |
|
| ServiceJobId |
|
| ServiceName |
|
| StatusType |
|
| SubComponentName |
|
| Subject |
|
| UserId |
|
| Username |
|
使用方法
次の例は、プラットフォーム状況アラートイベントを処理する方法を示しています。内部サービスのみがこのイベントを公開できます。これは、プラットフォームイベントメッセージが公開されたときに起動され、管理プロファイルでイベントの詳細を含む Chatter 投稿を作成する Apex トリガの例です。
例
このコード例は、最終的に次を含む Chatter 投稿として表示されます。
Alert occurred in the service: Next Best Action Strategy
APIErrorCode: INVALID_OPERATION
ComponentName: Strategy_for_error_event_demo
EventDate: 2018-12-18 21:59:48
EventIdentifier: null
ExtendedErrorCode: FORMULA_EXPRESSION_INVALID
RelatedEventIdentifier: null
ReplayId: 63
RequestId: TID:89715900005e40b69a
ServiceJobId: 1014fd4e-4a19-4910-be36-377a7f2f1b75
ServiceName: Next Best Action Strategy
StatusType: Error
SubComponentName: filter_node1
Subject: Something went wrong with filter element 'filter_node1': 'Unknown function ISBLANC.Check spelling.'
UserId: 005RM000001ZnzAYAS
Username: xxx@yyy.com
