GlideTransaction API reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2015 06:12 AM
Can anyone tell me where I can find an API reference for the GlideTransaction object? I have found multiple examples in the community forums and in Business Rules and Script Includes but it is not listed in the Product Documentation Server API reference (Server API Reference - ServiceNow Wiki) or in the Developer site API reference (https://developer.servicenow.com/app.do#!/api_doc).
Thanks,
Michael Mongeau
Stratus Technologies
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2015 01:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2015 01:47 AM
Hi Berny
can you share how you pulled that information from the GlideTransaction Class?
Cheers
Boris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2015 01:18 PM
Hi Boris (bmoers boris.moers)
Sure. Here goes the code:
var gTransaction = GlideTransaction;
for (var property in gTransaction){
gs.print (property);
}
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2015 01:20 PM
Please also notice that you can get the properties for a transaction itself by getting the transaction instance using .get() and then iterating through it's properties with a for (.. in ..)
var gTransaction = GlideTransaction.get();
for (var property in gTransaction){
gs.print (property);
}
Thanks,
Berny

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2016 08:36 PM
Has any one been able to use this to create custom update set rules for tables?
I would like to configure a table to automatically capture all related m2m and reference fields.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022