Finish script (Not appear in Call Manager)

Issue

Finish script

Solution

In a Database_Get control at the end of the script use this query:

exec sp_Agent_Finish_All [var_session]

This will finish off the session for this script, it will also prevent it from appearing in the Call Manager.

Please note: this won't work if you are using a workflow to alert the script in the Call Manager as this stored procedure finishes the script before the workflow can run. 

If you don't have this stored procedure on your system please contact the CallScripter Helpdesk.