BreachConfirmationHTML
- Type
- python
- Pack
- CommonScripts
Source
import demistomock as demisto
from CommonServerPython import *
def main():
try:
incident = demisto.incidents()
query = incident[0].get("CustomFields", {}).get("breachconfirmation", "Pending Confirmation")
color = "green"
header = "Pending Confirmation"
if query == "Confirm":
color = "red"
header = "Confirmed"
elif query == "Not Confirm":
color = "blue"
header = "Not Confirmed"
html = f"<div style='color:{color};'><h2>{header}</h2></div>"
demisto.results({"ContentsFormat": formats["html"], "Type": entryTypes["note"], "Contents": html})
except Exception as ex:
return_error(f"Failed to execute calculate entropy script. Error: {ex!s}")
if __name__ in ("__main__", "__builtin__", "builtins"):
main()
README
This Compliance content pack contains essential incidents fields that are used in the compliance-related packs.
The script in this pack is used for a dynamic field in the HIPAA Breach Notification Incident layout and the US Breach Notification layout to indicate if a breach was confirmed.
For more information, visit our Cortex XSOAR Developer Docs