setWorkflow(false) and autoSysFields(false); is not working in fix script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 02:57 AM
When I try to use setWorkflow(false) and autoSysFields(false) in Fix Script/Background Script, it doesn't block to update System fields(Updated, updated by, etc.,) instead it updates the current time and currently logged-in user details. following is the script we used in the fix script/background script.
var gr = new GlideRecord("dmn_demand");
gr.query();
while (gr.next()) {
gr.setValue('demand_manager',gr.getValue('assigned_to') );
gr.setWorkflow(false);
gr.autoSysFields(false);
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 03:59 AM
The script seems fine.
Can you share more details / example screenshot?