Adding extra parameter (field) in create incident topic block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 04:29 AM
Hello Developers,
I have a requirement in adding and mapping a new parameter (IMPACT) into Create Incident topic block. I followed the below steps:
1. Duplicated the Create Incident topic block.
2. Added new parameter called impact.
3. Mapped as below in the script provided in topic block:
var incDetails - new sn_itsm_va.VACreateINCUtil().createIncident(caller, short_desc, urgency, desc, cmdb_ci, impact);
4. Added my newly created topic block to Create Incident topic.
Mapping is not working.
I have attached screenshots for the same. Request your valuable inputs on this please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 07:17 AM
So it means the input is not taken correctly in script.
what's the name of the input variable?
are you using the correct name? at line 7
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 07:40 AM
@Ankur Bawiskar yes, the input variable is Impact and the backend name is impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 07:49 AM
share the step which is accepting input.
Since your value is not coming, it won't update
what type of input are you asking user? choice or text?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 08:04 AM
@Ankur Bawiskar , Type of input is choice. I have attached screenshot of the script and values for impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 09:13 AM
are the choices shown on topic the correct ones?
please check my below response.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader