function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dippan PatelDippan Patel 

Lead created by LMA causes Trigger failure "System.CalloutException: Callout loop not allowed"


I have a trigger that is making a callout after insert. The trigger is failing with the exception "Callout loop not allowed" only in case when lead is created by LMA. For rest of the cases it is working fine. Is there any workaround or solution for the issue? 
//Test Code 

trigger testTrigger on Lead (after insert) 
	for (Lead lead : { 
		//call TestClass.testCallout()  
public class TestClass { 
	public static void testCallout() { 
		Http http = new Http(); 
		HttpRequest req = new HttpRequest(); 
		req.setHeader('Content-Type', 'application/json'); 
		HTTPResponse res = http.send(req); 

SwethaSwetha (Salesforce Developers) 
HI Dippan,
Have you tried the resolution mentioned in

Can you share more details on the steps to reproduce this scenario so I can check from my end too?Thanks