I am receiving the following error 'Web service callout failed: WebService returned a SOAP Fault: System.CalloutException: Callout loop not allowed'. My code is as follows:
pageReference pdf = Page.viewPDF; pdf.getParameters().put('id',commDocIds); Attachment attach = new Attachment(); Blob body; body = pdf.getContent();
And this code is inside a loop. I thought that only soql and dml isn't allow in loop, but now this weird error. How can i solve this ?