You can extend context either in a playbook task, or directly from the command line. Whichever method you use, Cortex XSOAR recommends that you first run your command with the
raw-response=true flag. This helps you identify the information that you want to add to your extended data.
Go to the Advanced tab of the relevant playbook task.
In the Extend Context field, enter the name of the field in which you want the information to appear and the value you want to return.
The following image shows the result of the
!IPReputation ip=18.104.22.168 raw-response=truecommand, which extends the context of the field name ip with the IP address 22.214.171.124.
To include more than one field, separate the fields with a double colon. For example:
To output only the values for Extend Context and ignore the standard output for the command, select the Ignore Outputs checkbox.
While this will improve performance, only the values that you request in the Extend Context field are returned. You cannot use Field Mapping as there is no output to which to map the fields.