---
sourceDocument: Australia Security Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/security-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Extract Shell Script from MID Script activity

# Extract Shell Script from MID Script activity {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Extract Shell Script from MID script workflow activity pulls a MID server shell
script to use with in the workflow.
The Extract Shell Script from MID Script activity can be used with any workflow to extract
a MID server shell script to include in the workflow.

## Results

Possible results for this activity are:
{#extract-shell-script-mid-script-activity__table_lg3_dm5_vy__entry__2}

| Result | Description |
|-|-|
| Success | Found shell script |
| Failure | No shell script found. More error information is available in the activity output error. |
[Table 1. Results]

{#extract-shell-script-mid-script-activity__table_lg3_dm5_vy}

## Input variables {#extract-shell-script-mid-script-activity__section_nhw_lfm_3z}

Input variables determine the initial behavior of the activity.
{#extract-shell-script-mid-script-activity__table_pgm_tfy_jr__entry__2}

| Variable | Description |
|-|-|
| sysId | System identifier |
[ ]

{#extract-shell-script-mid-script-activity__table_pgm_tfy_jr}

## Output variables

The output variables contain data that can be used in subsequent activities.
{#extract-shell-script-mid-script-activity__table_bnj_jfy_jr__entry__2}

| Variable | Description |
|-|-|
| scriptValue | Script, as a string value, executed on a Unix system. |
[Table 2. Output variables]

{#extract-shell-script-mid-script-activity__table_bnj_jfy_jr}

