sn_ws.RESTMessageV2 API to verify which environment it is

NagE
Tera Contributor

Future State: As a ServiceNow developer, I'd like for business rule sn_ws.RESTMessageV2  API executions to stay within their environment.

 

Ideally a business rule will have the intelligence to recognize what environment it's executing in, and then only act within that environment.

 

For example, if a business rule is making an outbound API call, it needs to know if it's in prod or nonprod, then call accordingly.


Please suggest the correct code to stay within the environment for all activities.

0 REPLIES 0