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
KruviKruvi 

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

 

Kruvi

bshin3bshin3

Kruvi-

 

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

KruviKruvi

No

 

You cannot callout from a call-in

 

You'll need to use a future method I guess

tomcollinstomcollins

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?