GlideTransaction API reference

mmongeau
Giga Guru

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

16 REPLIES 16

Using Xplore on share I see these methods but they appear to be blackbox'd


Capture.PNG


Hi Berny



can you share how you pulled that information from the GlideTransaction Class?



Cheers


Boris


Hi Boris (bmoers boris.moers)



Sure. Here goes the code:



var gTransaction = GlideTransaction;


for (var property in gTransaction){


  gs.print (property);


}



Thanks,


Berny


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


The SN Nerd
Giga Sage
Giga Sage

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