CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 76: Certified Platform Developer II

A company requires an external system to be notified whenever an account is updated. trigger AccountTrigger on Account (after update){ for (Account updatedAccount:Trigger.new){ AccountTriggerHelper.notinyxternalSystem(updatedAccount.id); } } public class AccountTriggerHelperfuture(callout=true){ public static void not…

Nội dung câu hỏi

A company requires an external system to be notified whenever an account is updated. trigger AccountTrigger on Account (after update){ for (Account updatedAccount:Trigger.new){ AccountTriggerHelper.notinyxternalSystem(updatedAccount.id); } } public class AccountTriggerHelperfuture(callout=true){ public static void notinyxternalSystem(Id accountId){ Account acc = [Select id, name from Account where accountId =:accountId]; http objectHttp h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('http://example.org/ restService'); req.setMethod('POST'); req.setBody(JSON.serialize(acc)); HttpResponse res = h.send(req); } }What LimitException could the following code trigger?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. System.LimitException: Too many future calls — đáp án hiện tại
  2. B. System.LimitException: Too many callouts
  3. C. System.LimitException: Too many SOQL queries
  4. D. System.CalloutException: Callout from triggers are currently not supported

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề