Hi all,
I’m struggling with an sql statement that will not return a value.
I would like to make life a bit more easy by creating a script to set the SubmitterName & SubmitterEmail values in manually created tickets with the value from the selected organization.
I asked this in a ticket to Kaseya support, but they state that this is not supported
What I have done so far:
Add some new code to the “Stage Entry or Exit”:
getVariable(“Mail_Submitter”, “Constant Value”, “”, “Continue on Fail”)
executeSQLQuery(“Copy_Mail_Submitter”, “Mail_Submitter”, “Continue on Fail”)
addNote(“—Select--”, “Mailadres: [=Mail_Submitter=]”, false, “Continue on Fail”)
The SQL Query called upon contains:
<queryDef label="Copy_Mail_Submitter" sql="SELECT staff_email FROM kasadmin.vbo_SDIncidents_General WHERE ref=[$TicketId$]" />
I can do the same query on the database itself, but in the procedure I get no result.
Am I goofing up some ware?