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?
BrainMelt12
4 months agothekumarakshay
1 year agosanto_aj
1 year, 8 months agoSegre
1 year, 10 months agolorenac2
2 years agomageshrr
2 years, 2 months agoPeter808
2 years, 3 months agoagjklsjrhgjksf
2 years, 7 months agolorenac2
2 years agoskipper009
2 years, 11 months agodrwebber
3 years, 1 month agonibbio
3 years, 1 month agoAnhTH
3 years, 3 months ago