---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# REST Message legacy workflow activity

# REST Message legacy workflow activity {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of REST Message legacy workflow activity

The REST Message legacy workflow activity allows administrators to override REST endpoints or supply variables configured in the REST Message module to execute REST functions (POST, PUT, GET, DELETE) on specified endpoints.
This activity is deprecated as of the Brazil release and does not appear in new workflow development canvases.
Existing workflows using this activity will continue functioning but require re-activation for edits.
New workflows should use the Orchestration REST Activity templates instead.
Show full answer Show less  

## Key Features

* **REST Message and Function Selection:** Select a REST Message and the specific HTTP method function (put, post, get, delete) to execute, referencing existing REST Message records and functions.
* **Endpoint Override:** Optionally override the REST endpoint defined in the REST Message function record.
* **Variable Substitution:** Supply variables for substitution in outbound REST messages using a specific name=value format, supporting escaped characters.
* **MID Server Support:** Option to send REST messages through a MID Server, useful for reaching endpoints behind firewalls or private subnetworks. The workflow can auto-select a MID Server based on IP range and REST capability if not specified.
* **Post-request Script Execution:** Ability to run a script after receiving the REST response, with access to the full response body via the activity.output variable.

## Practical Considerations for ServiceNow Customers

* This activity is deprecated and should be replaced by Orchestration REST Activity templates for any new workflow development.
* Existing workflows using this activity remain supported but require re-activation to edit the REST Message legacy activity.
* Configuring MID Servers for REST messages is necessary when targeting endpoints inaccessible directly from the ServiceNow instance, requiring SSH-enabled MID Servers accessible by the instance.
* Proper formatting of variable substitutions and understanding how to script post-response processing enhances the flexibility of REST integrations within workflows.  
The legacy REST Message activity enables an administrator to override the REST endpoint or supply the variables configured in the REST Message module.{#r_RESTMessageActivity__vdq_msk_3y}
This activity is deprecated in the Brazil release and no longer shows up in the Workflow canvas for new workflow development. New workflows should use the [Orchestration](https://servicenow-prod.fluidtopics.net/q4CIyRtUIHQ8Z3mNdqaisA "ServiceNow Orchestration extends the workflow engine to manage processes and to automate things outside of a ServiceNow instance.") REST Activity templates instead.

Existing workflows using it will continue to work as designed. To edit this activity in an existing workflow, you must [re-activate the activity](https://servicenow-prod.fluidtopics.net/zgrO0bANQK3jpQ3N8QEgvQ "Orchestration activities that were converted to activity packs are deprecated for upgraded and new instances but can be reactivated for use in new workflows.").

The REST Message activity executes a dead link REST function
(POST, PUT, GET, or DELETE) on an endpoint using values defined in the function record.  
Note:  
If you want to use a MID Server to send the REST message, the MID Server must be accessible by the instance and configured to use SSH.

## Input variables

{#r_RESTMessageActivity__table_emf_3rl_sq__entry__2}

| Field | Description |
|-|-|
| Rest Message ||
| REST Message | Name of the [Create a REST message](https://www.servicenow.com/docs/access?context=t_ConfiguringARESTMessage&version=brazil&pubname=brazil-api-reference&ft:locale=en-US) to run. This is a reference field to the REST Message \[sys_rest_message\] table (System Web ServicesOutboundREST Message). |
| REST Message Function | Function to call that is defined in a REST message function. This is a reference field to the HTTP Method \[sys_rest_message_fn\] table (System Web ServicesOutboundREST Message). Available functions are put, post, get, or delete. You can edit functions in the HTTP Methods related list in each REST Message record. |
| REST Endpoint | REST endpoint to use instead of the Endpoint defined in the HTTP Method record. Leave this field blank to use the defined endpoint in the REST Message Function record. |
| Rest Message Variables ||
| Variables | Values to use for [Variable substitution in outbound REST messages](https://www.servicenow.com/docs/access?context=c_VariableSubstitutionREST&version=brazil&pubname=brazil-api-reference&ft:locale=en-US) defined in the HTTP Method record. Use the following format for the string: name1=value1, name2=value2, . . . For example, use `name=${nameValue}, id=${idValue}` where <var class="keyword varname">name</var> and <var class="keyword varname">id</var> are function variables. If either the variable name or value contains a comma or equal sign, escape those characters with a backslash. |
| Rest Message MID Server ||
| Use MID Server | Check this box if you want to use a MID Server to send the REST message. A MID Server might be necessary to reach an endpoint within a firewall or a subnetwork that is not visible from the instance. If this check box is selected, but no MID Server is defined in the MID Server field, the workflow automatically attempts to find a MID Server based on IP range and the REST capability. |
| MID Server | Name of the MID Server to use. This field is available when Use MID Server is selected. The workflow ignores this parameter if the use_midserver parameter is disabled. |
| Rest Message Script ||
| Sensor Script | The script to execute after the request has been made and a response has been received. You can access the full response body from the <var class="keyword varname">activity.output</var> variable. |
[Table 1. REST Message activity input variables]

{#r_RESTMessageActivity__table_emf_3rl_sq}

*[\>]: and then


