- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2015 07:52 AM
I'm trying to use GlideMultipleUpdate, but it behaves kinda weird...
Here's my code:
var grt = new GlideMultipleUpdate("u_grit_path_import");
grt.addQuery('u_groupname', 'BUILTIN\\Administrators');
//grt.addQuery('u_groupname', 'CONTAINS', 'BUILTIN');
//grt.addQuery('u_groupname', 'IN', 'BUILTIN\\Administrators');
//grt.addQuery('BUILTIN', 'IN', 'u_groupname');
grt.setValue("sys_import_state", 'ignore');
grt.execute();
I've tried with different options which are commented out in the above example, but I keep getting the error message:
*** ERROR *** com.glide.db.GlideSQLException:
See glide log for error details
With the following message in the log:
*** ERROR *** com.glide.db.GlideSQLException:
And when I don't get an error message, he just skips the where-clause and updates all records.
I'm at a loss, any ideas anyone?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 04:13 AM
Just saw this blog and it answers your question
Updating Multiple Entries | Glass 'putan with Service-Now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 02:10 AM
Yes indeed, that's why I added the screenshot of the dictionary, which clearly shows the name of the table and column to be correct

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 02:13 AM
Not really sure. Maybe it's not created at DB level. Hi-ticket might help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 02:17 AM
Before I give up, execute this in background script
gs.print(gs.sql('DESCRIBE u_grit_path_import'));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 03:11 AM
Field, Type, Null, Key, Default, Extra
u_servername, varchar(40), YES, , null,
u_owner, varchar(40), YES, , null,
u_filepath, varchar(40), YES, , null,
u_allowed, varchar(40), YES, , null,
u_groupname, varchar(40), YES, , null,
u_folderright, varchar(40), YES, , null,
sys_id, char(32), NO, PRI, ,
*** Script: undefined
[0:00:00.004] Total Time

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 03:23 AM
You have tried this version right?
var grt = new GlideMultipleUpdate('u_grit_path_import');
grt.addQuery('u_groupname','CONTAINS','BUILTIN');
grt.setValue('field','value');
grt.execute();
Is the table a import set table?