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
1 month, 1 week agothekumarakshay
9 months, 3 weeks agosanto_aj
1 year, 5 months agoSegre
1 year, 7 months agolorenac2
1 year, 9 months agomageshrr
2 years agoPeter808
2 years agoagjklsjrhgjksf
2 years, 4 months agolorenac2
1 year, 9 months agoskipper009
2 years, 9 months agodrwebber
2 years, 10 months agonibbio
2 years, 10 months agoAnhTH
3 years ago