Get running number by RunID

Discussion created by joel_wiesmann_automic on Dec 17, 2015
Latest reply on Dec 21, 2015 by Georg_Seitz_2336
Hi there I'm on V10 & I would like to set some states by using modify_task. Unfortunately modify_task does not work with alias-task names. I get a 20741 (There is no task that shows the specified name and/or running number.). However I need to rely on the alias name for the inactivation logic. To get the running number I might count trough the activation report (1st activated object = running number 2, 2nd = 3, 3rd = 4 etc.) however this only works, if there are no external dependencies involved. If there are, running numbers are messed up as dependencies won't show up in the activation report. So this won't be a solution as well. Desperate me is now hoping for a way to get the running number by the GET_STATISTIC_DETAIL method & some undocumented detail name (like "ALIAS" which is available but not documented in my version). Anyone knows about this or any other solution? Maybe an SQLI query? Regards Joel