- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 08:59 AM
I am trying to create a flow designer for the follow conditions:
Trigger: When remediation task is created.
Whenever a remediation task is created, I would like the flow to search for a specific word in the "short description" field and based on that word, assign it to a specific users. So for example:
Short description contains "Windows", assign to analyst A
Short description contains "Linux" assign to analyst B etc.
I have about 20 different analysts that would like to add to the flow. Any help in how to accomplish this would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 09:45 PM
2 approaches
1) Flow designer -> you can use inline script for this to assign the task and use Flow Variable logic
Something like this
var userSysId = '';
var shortDescription = fd_data.trigger.current.short_description.toString().toLowerCase();
if(shortDescription.indexOf('windows') > -1)
userSysId = 'analystASysId';
else if(shortDescription.indexOf('linux') > -1)
userSysId = 'analystBSysId';
return userSysId;
2) Assignment rules
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 10:10 AM
Hi @Jay_N
Practically, it's not the right approach to search in the short description. Sometimes, a short description might have variations like "Window" or "windows," or extra spaces at the beginning or end, causing the search to fail. It’s better to keep it in a reference field instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 09:45 PM
2 approaches
1) Flow designer -> you can use inline script for this to assign the task and use Flow Variable logic
Something like this
var userSysId = '';
var shortDescription = fd_data.trigger.current.short_description.toString().toLowerCase();
if(shortDescription.indexOf('windows') > -1)
userSysId = 'analystASysId';
else if(shortDescription.indexOf('linux') > -1)
userSysId = 'analystBSysId';
return userSysId;
2) Assignment rules
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2025 02:55 AM
Hi @Jay_N
You can use a Decision Table to store Keyword vs Analyst mapping as shown below and call the decision table within the flow to get the relevant analyst.
Thanks and Regards
Amit Verma