Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 09:07 AM
Hi @Sandeep Rajput I checked I haven't added setWorkflow(false) this is the reference script which I have created.
(function executeRule(current, previous /*null when async*/ ) {
var sys = current.getValue('parent');
var concat = current.getDisplayValue('parent') + '@' + current.getDisplayValue('child');
var app = GlideRecord('cmdb_ci_appl_XYZ');
app.addEncodedQuery('xyz');
app.query();
while (app.next()) {
if (app.sys_id == sys) {
app.name = concat;
app.update();
}
}
})(current, previous);