+ Start a Discussion

Problem with "Callout loop not allowed"

Hi I need so expert help...


I have an APEX REST POST method that is being called from an external system 'A'.


Processing this POST I need to callout to another external system 'B' and based on its response continue with my application logic, eventually returning the result to system 'A'.


The problem is that I'm getting an Error:  "System.CalloutException: Callout loop not allowed"


This is really important.

Any suggestion how can I achieve the flow I described?


Many thanks






I am experiencing the same issue. Were you able to find a resolution to this?




You cannot callout from a call-in


You'll need to use a future method I guess


Similar question on Salesforce StackExchange: http://salesforce.stackexchange.com/q/6142/450


It sounds like you can't make a callout if the inbound request came from another Salesforce instance.  Going through an @future method won't help either.

Dan VegaDan Vega
I'm also looking for a solution/workaround for this.  Any ideas?