Illegal access to outbound HTTP in (scoped application). Use an async business rule to perform outbound HTTP requests.

Jayaraj
Tera Contributor

Illegal access to outbound HTTP in (scoped application). Use an async business rule to perform outbound HTTP requests.
i have attempted by testing executeAsync, but same error again.

It was working fine and getting 200 response from in rest explorer where as when connect from sernvicenow applciation the above error occurs.

I checked the community but i didnot get right answer to this issue.

please help on this.

Regards,
Jayaraj

7 REPLIES 7

DScroggins
Kilo Sage
Hi Jayaraj. When making outbound REST calls using business rules in scoped applications the business rule must be an 'async' type BR. Can you confirm how your current business rule is configured?

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

when you try to make REST calls from business rule in scoped application ServiceNow recommends to use async; if you try to use after insert/update then system won't allow to save the business rule

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

I understand we will have to use Async business rule for outbound HTTP request when using scoped applications. Can you please provide logical explanation of why we have to use Async BR and not any other type of BR ?

Jayaraj
Tera Contributor

Hi David / Ankur, 

 

I am using before and delete BR as i need to pass the current objects to perform the internal activities further like audit, etc.

 

Please advise if there is any alternate way to invoke outbound rest message for scoped application to resolve this problem.

Regards,

Jayaraj