DisplayIndicatorReputationContent

Display the indicator context object in markdown format in a dynamic section layout.

python · Community Common Scripts

Source

import demistomock as demisto  # noqa: F401
from CommonServerPython import *  # noqa: F401

try:
    scores = demisto.args()["cache"]["scores"]
except Exception:
    demisto.results("No scores cached")
    sys.exit(0)

md = ""

for _k, v in scores.items():
    md += v["content"]
    md += "\r\n\r\n"


entry = {
    "Type": entryTypes["note"],
    "Contents": md,
    "ContentsFormat": formats["markdown"],
    "HumanReadable": md,
    "ReadableContentsFormat": formats["markdown"],
}

demisto.results(entry)

README

Display the indicator context object in markdown format in a dynamic section layout

Script Data


Name Description
Script Type python3
Tags dynamic-indicator-section
Cortex XSOAR Version 6.0.0

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.