Not able to capture data using GlideUpdateManager2() in flow designer (run by system user)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2022 11:57 AM
When I use below code in Flow Designer or Script Include (trigger from flow designer) or Business Rule, not working as expected. Same piece of code working fine in background script or Script Include (trigger from background script). Do we have any alternative way to capture data in current update set in automated script
var um = new GlideUpdateManager2();
var tasks = new GlideRecord(<Custom Table>);
tasks.addEncodedQuery('sys_idIN'+<comma separated sysids>);
tasks.query();
while (tasks.next()) {
um.saveRecord(tasks);
}
Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 07:43 AM
What is your use case? I rather sounds like something you should be doing in a fix script and not in a flow.