Hi Dojo,
I want to abort an automation script using:
ScriptControlMessage abortMessage = new ScriptControlMessage(DataMinerID)
{
ScriptID = scriptID, //this is the running automation script ID
Type = ScriptControlType.Detach // this aborts the script
};
How can I get the script ID when I only know the name?
IDmsAutomationScript only has Name, Description..
Thank you,
Ana
Hi Ana,
I could not find a way to request the active script IDs as seen in the screenshot from João's response. The ID is however returned as part of the ExecuteScriptMessage response, so that would be my only guess to be able to actually get a hold of these IDs if you decide to execute all scripts via this call.
Hi Ana, I was using the ‘Follow’ option while executing scripts and then aborting them. I could see that ExecuteScriptMessage response had a ScriptId, and the abort message was using that same ID. I was executing from the Automation Module ‘Execute’ button. I’m not sure why that gives different results than doing it from Client Test tool. You could check if there are other properties missing in the ExecuteScriptMessage.
The script ID will only be returned when an interactive script is executed. (ExecuteScriptMessage contains ‘INTERACTIVE’ option)
Hi Robin,
Thank you for the suggestion!
I tried it out on the client test tool with several automation scripts and I get always ScriptID 0.