How to get the sys_id of a catalog item using the Reference qualifier

yuchen zhang
Tera Contributor

Hi everyone, I am making a variable filter and need to know the sys_id of the current catalogitem, but the g_form.getUniqueValue() method can only be applied in the clientscript. Is there any other way to solve my problem?

Thanks in advance.

画像1.png

1 ACCEPTED SOLUTION

RaghavSh
Kilo Patron

current.cat_item will return the catalog item sys_id, you can use that accordingly.

 

example, if you want to pull RITMs related to current cat item, the ref qualifier will be:

 

javascript:'cat_item='+current.cat_item;


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023

View solution in original post

2 REPLIES 2

RaghavSh
Kilo Patron

current.cat_item will return the catalog item sys_id, you can use that accordingly.

 

example, if you want to pull RITMs related to current cat item, the ref qualifier will be:

 

javascript:'cat_item='+current.cat_item;


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023

Thank you!!