Get sysid of Record Producer in Catalog Client Script

Constantine1
Giga Contributor

How do I get the sysid of the item about to be created through a Record Producer in a Catalog Client Script? To clarify, I am not looking in getting the sysid of the catalog item itself, but the record that will be produced once someone submits the request.

1 ACCEPTED SOLUTION

Constantine1
Giga Contributor

I think I found a way of doing by referencing a DOM element. The following code is giving me the sys_id in a catalog client script :


gel('sysparm_item_guid').value


I was hoping there was some function call I was missing but it doesn't look like that is the case.


View solution in original post

11 REPLIES 11

Chuck Tomasi
Tera Patron

Hi Constantine,



Until the record is actually created, there is no sys_id.


I was just wondering if GlideGUID class would be of any help to generate the 32 bit GUID and use it as a sys_id for generating record on RITM.


then how can we fetch the item being ordered?

 Please reply

 

Abhinay Erra
Giga Sage

Krick,



  What is your use case here?



Thanks,


Abhinay



PS: Hit like, Helpful or Correct depending on the impact of the response