Question 236

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?
  • Question 237

    A developer wrote an Apex class to make several callouts to an external system.
    If the URLs used in these callouts will change often, which feature should the developer use to minimize changes needed to the Apex class?
  • Question 238

    Which statement is true about using ConnectApi namespace (also called Chatter in Apex)? (Choose two.)
  • Question 239

    If a developer wanted to display error messages with the standard Salesforce UI styling, what would they use?
  • Question 240

    Which statement is considered a best practice for writing bulk safe Apex Triggers?