How can I get sys_id of the incident i just opened?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2022 08:46 AM
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?
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2022 09:02 AM
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.
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();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2022 09:08 AM