Exam4Training

What should the developer do to fix this error?

A business implemented a magnification plan to encourage its customers to watch some educational videos.

Customers can watch videos over several days, and their progress is recorded. Award points are granted to customers for all completed videos. When the video is marked as completed in Salesforce, an external web service must be called so that points can be awarded to the user.

A developer implemented these requirements in the after update trigger by making a calf to an external web service. However, a System.CalloutException is occurring.

What should the developer do to fix this error?
A . Surround the external call with a try-catch block to handle the exception.
B . Write a REST service to integrate with the external web service.
C . Move the callout to an asynchronous method with structure (callout=true) annotation.
D . Replace the after update trigger with a before insert trigger.

Answer: C

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version