Skip to main content

ConvertCountryCodeCountryName

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.5.0 and later.

Convert country name to country code or country code to country name. Only one of 'country_code' or 'country_name' can be provided. Example: Input: { "country_code": "US" } Output: { "United States" } Another Example: Input: { "country_name": "United States" } Output: { "US" }

Script Data#


NameDescription
Script Typepython3
Tagstransformer
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
country_codeCountry Code Alpha 2 (Example: US)
country_nameCountry Name

Outputs#


There are no outputs for this script.