Skip to content

Instantly share code, notes, and snippets.

@trir262
trir262 / 01 Get-DynAppID.py
Last active July 14, 2021 19:08
Share results between snippets in a runbook
from silo_common.database import local_db
from collections import namedtuple
#Anthing passed via the EM7_RESULT is in clear text visible to anyone. Better not send any confidential data through that channel!
app_id = 0
try:
dbc = local_db()
query = ("select app_id from master.dynamic_app_alerts where alert_id = {}".format(EM7_VALUES['%F']))
app_id = dbc.autofetch_value(query)