- 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.
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-24-2025 10:10 AM
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.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- 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.
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-25-2025 02:55 AM
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
Please mark this response as correct and helpful if it assisted you with your question.