A. 2 つのトリガーが同じコンテキストで起動され、DML ステートメントによって処理されるレコード数を超えるため、一括更新は失敗します。
B. 取引先アドレスの一括更新は成功しますが、DML ステートメントによって処理されるレコード数を超えるため、連絡先アドレスの更新は失敗します。
C. 各トリガーは独自のコンテキスト内で起動され、各トリガーは DML ステートメントによって処理されるレコード数の制限を超えないため、エラーは発生しません。
D. DML ステートメントによって処理されるレコード数の制限を超えていないため、エラーは発生せず、すべての更新が成功します。
答案:C
解題說明:
The correct answer is that there will be no error, since each trigger fires within its own context and each trigger does not exceed the limit of the number of records processed by DML statements. Each trigger invocation has its own set of governor limits, which are reset for each batch of 200 records processed by the trigger. Therefore, the Account after-update trigger will process 200 records per batch, and update 10,000 Contact records per batch, which is within the limit of 10,000 records processed by DML statements per transaction. Similarly, the Contact after-update trigger will process 10,000 records per batch, and update 10,000 Campaign Member records per batch, which is also within the limit. There will be no error and all updates will succeed, since the limit on the number of records processed by DML statements was not exceeded is incorrect, as the limit is per transaction, not per execution. The mass update of Account address will succeed, but the Contact address updates will fail due to exceeding number of records processed by DML statements is incorrect, as the Contact address updates will not exceed the limit, as explained above. The mass update will fail, since the two triggers fire in the same context, thus exceeding the number of records processed by DML statements is incorrect, as the two triggers do not fire in the same context, but in separate contexts, as explained above. Reference: [Triggers and Order of Execution], [Execution Governors and Limits], [Apex Developer Guide]
答案:B,D
解題說明:
internal apps can use processes, flows, or Apex to publish platform event messages from a Salesforce app. Process Builder is a tool that lets you automate business processes by creating processes. You can use Process Builder to publish platform event messages when a record changes or when a platform event occurs.
external apps can use Salesforce APIs to publish platform event messages. You can use any Salesforce API to create platform events, such as SOAP API, REST API, or Bulk API. The Streaming API is a Salesforce API that lets you push a stream of notifications from Salesforce to external apps. You can use the Streaming API to publish platform event messages by creating records of your event type.
Therefore, using Process Builder and Streaming API are two mechanisms to publish platform event messages after a platform event is defined in a Salesforce org. https://developer.salesforce.com ... _events_publish.htm