How to auto assign incident to a particular group based on few words in description

Renu9
Tera Contributor

Hi All,

I want to auto assign an Incident to a group based on few words in the description field. Please let me know how I can do that. Few words such as bot, UI path, rpa , etc etc. I am trying with one word as of now, but it is not working. Please guide

 

if(producer.description.toLowerCase().indexOf('RPA')>=0)
{
    gs.addInfoMessage("testing rpa");
    current.assignment_group="77c9b13d1bfe205026de123edc4bcb9a" ; //RPA team
}
11 REPLIES 11

@Renu9 

info message is not coming it means it's not going inside the IF

Did you check the variable name is correct?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes I even put a log for producer.description .

It returned the text that is entered.

After the if condition it is not displaying