- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Thanks for responding! This JS works for updating only current workflow where i run the JS. But i want to update for all the workflows in our instance. (i.e) keepResult=No.
I tried below code. But it doesnt work.
var query = xtk.queryDef.create(
<queryDef schema="xtk:workflow" operation="select">
<select>
<node expr="@keepResult"/>
<node expr="@id"/>
</select>
</queryDef>
);
var record = query.ExecuteQuery();
for each (var variable in record) {
var keepResultIn = 0;
xtk.session.Write(<workflow xtkschema="xtk:workflow" _operation="update" id={variable.id} keepResult={keepResultIn} _key="@id"/>);
}
please help me to acheive this function!
Thanks and Regards,
Partha
Views
Replies
0 Likes
Total Likes