Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Possible to use g_scratchpad in a Record Producer, Catalog Item, Order Guide?

dhoffman
Tera Contributor

I use the onDisplay Business Rule --> onLoad Client Script combination in other places to make use of g_scratchpad and let the server do the work instead of burdening the client.   Is it possible to use this in a Record Producer, Catalog Item, or Order Guide?   Not sure what table this runs on since the URL is https://[instance].service-now.com/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=[sys_id of Record Producer]

Specifically, I'm trying to pass some User information to the record producer (company of the user).   Server-side, this is simply gs.getUser().getCompanyID(); but nothing is available client-side.   I suppose I could do an onLoad Catalog Client Script making an AJAX call?

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee

Hi David,



For catalog item form or record producer you should make a GlideAjax call via client script.
Please let me know if you have any questions.


View solution in original post

2 REPLIES 2

Pradeep Sharma
ServiceNow Employee

Hi David,



For catalog item form or record producer you should make a GlideAjax call via client script.
Please let me know if you have any questions.


srinivasthelu
Tera Guru

HI David,



Yeah. That is a processor. It wont run against   table. GlideAjax seems to be the way.



Thanks


Srini