Set Auto-assignment criteria to false on a HR Task created via scripting

kevinbruneau
Tera Contributor

Hi there,

Through a script include, we are creating a HR Case and depending on a specific option, we are also creating an HR Task under that HR Case and assigning it to a HR group.

 

When submitting the Record Producer, the HR Case get's created with it's HR Task, but we are getting a message saying "No agents meet the auto-assignment criteria for HRTXXXXXXXXX", see screenshot below.

 

kevinbruneau_0-1776167016282.png

 

For HR Cases, you can add the "Skip auto-assign" case option to the HR Service, but what about HR Tasks? I have looked online and couldn't find anything that worked. Would anyone know?

 

Thanks!

 

Kev

3 REPLIES 3

SripathiSai
Kilo Explorer

Hi @kevinbruneau 

 

Have you checked whether HR Assignment Rules or HR Matching Rules are being applied? We use these rules for auto-assigning HR records to users.

Shruti
Giga Sage

Hi 

Check 'Auto Assign' Business rule on HR Task table

Ankur Bawiskar
Tera Patron

@kevinbruneau 

As mentioned by @Shruti  

the message comes from this OOTB BR on HR Task table

You can disable that if you want

55.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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