Thank you very much. This was exactly I was looking for. I have another question tough: where can i get the latest JSAPI help file as I mine is from 2013 🙂
I have used this to get all workflows which use a particular list:
var query = xtk.queryDef.create( <queryDef schema="xtk:workflow" operation="select"> <select> <node expr="@id"/> <node expr="@label"/> <node expr="@internalName"/> </select> </queryDef> ) var res = query.ExecuteQuery(); var adobeId = 192400121; for each (var w in res.workflow){ var workflow = xtk.workflow.load(w.@id); if (workflow.toDocument().toXMLString().indexOf(adobeId) != -1) logInfo(w.@internalName + ";" + w.@label); }
Thank you,
Marcel