Skip to content

Instantly share code, notes, and snippets.

@icerge
Last active April 16, 2021 13:29
Show Gist options
  • Save icerge/30bd1df4225f14af5395f72634a2e446 to your computer and use it in GitHub Desktop.
Save icerge/30bd1df4225f14af5395f72634a2e446 to your computer and use it in GitHub Desktop.
Glide Multiple operations (Update, Delete)

GlideMultipleUpdate usage

var x = new GlideMultipleUpdate('sys_user');
x.addQuery('company', "59a8f78c37561304985d8ff1b3990e2f");
x.setValue('company', "d4287b0c37561304985d8ff1b3990e92");
x.setValue('department', null);
x.execute();

GlideMultipleDelete usage

var x = new GlideMultipleDelete('service_availability');
x.addQuery('service_offering', "4feb10f237d91b843ecf1f9543990e3a");
x.execute();
@icerge
Copy link
Author

icerge commented Sep 24, 2020

GlideMultipleUpdate.setValue - method access is restricted (at least in Orlando).

@zhmur
Copy link

zhmur commented Apr 16, 2021

Important to note is that dot-walk is not supported. It will just fail silently and update (delete) everything. GlideMultipleDelete will NOT put records into Deleted Records.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment