producer and current object definitions

squillis
Kilo Expert

Simple question.   I have found the definition for all of the extensions for the Producer and Current objects when scripting in the past but am having difficulty finding them now.   Can anyone provide a link to the list of extensions for the objects so I can see what options are available besides the .variables, .variable_pool, .redirect, etc. options?

5 REPLIES 5

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Scott,



For producer, this may be what you looked at.


http://wiki.servicenow.com/index.php?title=Record_Producer



For the current object, for the most part it's going to have every field on the record it represents as an object, and then all of the gliderecord methods as well. Depending on your context, it may have other methods and properties.


I'm actually looking for a list of the extensions, much like you find for both the


Glide Record on http://wiki.servicenow.com/index.php?title=GlideRecord#gsc.tab=0


and Glide Form on http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#gsc.tab=0


I know it's out there but haven't been able to locate it since around a week ago.


Brad Tilton
ServiceNow Employee
ServiceNow Employee

The docs site has similar articles, so I'm not sure if this is where you saw it, but I don't know that I've ever seen an article that lists more than these related to record producers. For producer, I think the only properties you have are:
producer.redirect
producer.variable_name



https://docs.servicenow.com/bundle/istanbul-it-service-management/page/product/service-catalog-manag...


https://docs.servicenow.com/bundle/istanbul-it-service-management/page/product/service-catalog-manag...


Hmm, I assume there has to be Some kind of record of what fields are in the classes besides the variables you define for them/them inherit.   I would think that list would include things like Name, Table name, Model, Application, Package, Active, Short Description, Description, etc as those are fields in the record producer.   Thanks for the help, though, Brad