- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 08:21 AM
Hi Experts!
I have created a flow designer to get Incidents created via Alerts received.
I have a requirement where if the Alert description has letter "CN" then the INC configuration item have an Application CI with sys ID "X".
I am trying to access the Alert data in the below screenshot and return a sys ID for the Configuration item to populated the INC but seems it is failing. Any help will be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 10:01 AM
Replace entire code with the following one.
var shortDesc = fd_data.subflow_inputs.ah_alertgr.description;
if(shortDesc.indexOf("CN") != -1){
return "sys_ID1";
} else {
return "sys_ID2";
}
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 08:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 08:53 AM
Thanks for the response @AnveshKumar M , I see the INC created but looks like the CI is not updated. I am using the below script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 09:12 AM
The output now shows like this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 10:01 AM
Replace entire code with the following one.
var shortDesc = fd_data.subflow_inputs.ah_alertgr.description;
if(shortDesc.indexOf("CN") != -1){
return "sys_ID1";
} else {
return "sys_ID2";
}
Anvesh