Catalog item sys id

servicenow14710
Tera Expert

Hi developers, How to get catalog item sysid in runscript of workflow for that item. Any suggestions is appreciated. Thanks!

1 ACCEPTED SOLUTION

@servicenow14710 

 

Yes,

 

Using current.sys_id will provide the sys_id of the record to which the workflow is attached. Typically, when a catalog item is submitted, a new record is created in the 'sc_req_item' table. To obtain the sys_id from the 'sc_req_item' table, you can use current.cat_item.

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

View solution in original post

3 REPLIES 3

Prince Arora
Tera Sage
Tera Sage

@servicenow14710 

 

I hope your workflow is on RITM table and you can get the sys_id of cat item as

 

current.cat_item

 

if your workflow is on sc_cat_item

 

You can use current.sys_id

 

 

Hi @Prince Arora  thanks for quick reply, workflow is on catalog item so i can use  current.sys_id as per the suggestion.

@servicenow14710 

 

Yes,

 

Using current.sys_id will provide the sys_id of the record to which the workflow is attached. Typically, when a catalog item is submitted, a new record is created in the 'sc_req_item' table. To obtain the sys_id from the 'sc_req_item' table, you can use current.cat_item.

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.