Skip to main content

CopyContextToField

This Script is part of the Common Scripts Pack.#

Copy a context key to an incident field of multiple incidents, based on an incident query.

This automation runs using the default Limited User role, unless you explicitly change the permissions. For more information, see the section about permissions here: For Cortex XSOAR 6, see the https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.x/Cortex-XSOAR-Playbook-Design-Guide/Automations for Cortex XSOAR 8 Cloud, see the https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/8/Cortex-XSOAR-Cloud-Documentation/Create-a-script for Cortex XSOAR 8 On-prem, see the https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/8.7/Cortex-XSOAR-On-prem-Documentation/Create-a-script.

Script Data#


NameDescription
Script Typepython2
TagsUtility
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
sourceContextKeyThe context key from which to get the value.
targetIncidentFieldThe incident field to set with the value.
incidentsQueryThe incidents query on which to apply the copy process. For example, to apply this to all incidents of type "Phishing", use the query: "type:Phishing".
limitThe maximum number of incidents to edit. Default is 1,000.
listSeparatorConcatenates list values.

Outputs#


There are no outputs for this script.