
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2019 02:24 PM
Hi,
Is it possible to map JSON Parameter values on Alert's Additional Info to Incident Drop Down field. We have a requirement, environment of the server impacted comes as part of event's additional information, we want to map it to Incident's Environment (Custom) field using Subflow if possible.
Any Ideas/Suggestions ?
Regards,
Ayush Saxena
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 05:05 AM
So the best way that I have done this is to create a custom alert action and reverence that action from within a subflow to provide that data. I had to do this for a few things (in fact if you look there is an out of the box one for getting alert details in the out of the box create incident subflow which you could clone and add it to that as it just returns multiple variables that can be referenced).
In order to do this though you have to be using the new subflow for incident creation and not referencing the script include way of doing it. I would just add code to an action or that out of the box one (after cloning it) to run regex on the additional_info (or you could get do the JSON.parse() and then access the data that way). Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 05:05 AM
So the best way that I have done this is to create a custom alert action and reverence that action from within a subflow to provide that data. I had to do this for a few things (in fact if you look there is an out of the box one for getting alert details in the out of the box create incident subflow which you could clone and add it to that as it just returns multiple variables that can be referenced).
In order to do this though you have to be using the new subflow for incident creation and not referencing the script include way of doing it. I would just add code to an action or that out of the box one (after cloning it) to run regex on the additional_info (or you could get do the JSON.parse() and then access the data that way). Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 10:01 AM
Thanks Robertgeen !! this is really helpful.. Can you please explain more on below
1. Did you use scripted Inputs ? I looked up was not able to find one OOB example. Can you direct me to same.
2. Will parsing JSON in that script give us the access to Key value parameters ? Do you have an example or something I can refer too.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 12:28 PM
Thanks Robert for this great advise !!
I tried creating a custom script action and called it in the subflow. I am able to pull in the value from the additional_info but not able to populate the same in next step.
So the idea is to pull value of inc_group coming from source tool and populate it to Incident assignment group.
Any idea,what I am missing here. this used to work with alert action rules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 10:54 PM
Hi Robert. I am having a similar issue. See: Accessing Subflow Input Variables From Activity Script
Do you have any advice please?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 01:05 PM
Thanks Robert !! This worked for me