How can I get sys_id of the incident i just opened?

Ruchika Thukral
Kilo Explorer

I'm creating a customised VA topic that creates an incident with certain fields. I want to display the incidnet number in the end. I'm using a Record Action utility to insert a record in incident table. Is there a way to get the sys_id of the record? or any other field that i can use in the addQuery method to filter out the incident?

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

Output of record action is sys_id of record.

You can configure a script action after record action to get sys_id of created record like below.

 

find_real_file.png

 

 

You can use below script in your script action to get sys_id of created record.

inci_id is the script variable in VA topic.

vaVars.inci_id = vaInputs.create_inc.getValue();
 
 
 
 
Regards,
Sachin

Nishu Saini
Kilo Guru
Kilo Guru
Use the data pill picker to get the incident id.