How can we disable the error Invalid value on Update?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 10:36 AM
For whatever reason, we're getting the following error after clicking a UI action even though the UI action is successful in setting all of the field values correctly. Since there really isn't an error, is there a line of code I can add to this to clear this type of alert message for this UI action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2022 03:43 AM
Hi,
Just a thought.
I recieved a similar message on UI Action click, in Workspace.
I thought it was my update in the UI Action, it wasn't, I was impersonating a user that didn't have write rights to the table.
atb,matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2022 03:56 AM
Hi,
You don't need to glide into table again, please use below script in before BR,
(function executeRule(current, previous /*null when async*/) {
current.sys_class_name = current.u_convert_case_to;
current.setWorkflow(false);
}
In case if you want to use after/asynch BR then add current.update() line at the end.
since we are trying to use current.setWorkflow(false), I would suggest to use After/Asynch BR with higher order as it may stop notifications or other BR from executing.
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2022 12:49 AM
Hey