How to auto close HR case when it is submitted

Kohei4
Giga Expert

Hi,

I would like to know a solution for below situation.

--------
An employee submit a HR case and it should be immediately closed without HR user work.
*The case will be integrated to 3rd party system. So HR users do not work on ServiceNow
--------

I have configured its HR service as below but the case was not closed once submitted
- Fullfilment type : Service Activity
- Automatically close case : true
- Close when : All to-dos are completed
- Close offset : 0
- Service activities : no record

So I am thinking that I need to create business rule to close when cases of the HR service inserted.
Is there any better solution?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You can use flow designer for this with no script involved instead of business rule

1) Flow triggers when Case is Created

2) Flow uses Update Record action and closes case with correct state values

Regards
Ankur

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

View solution in original post

6 REPLIES 6

Hi,

Did you check any mandatory field is being not populated during closure?

Did you check the flow context? any before update BR is stopping the closure.

regards
Ankur

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

Hi, 

Thank you for your comment.

I have checked I can directly change the state manualy without any field update after the case submitted. So this is not the cause of mandatory field I think.

Is there any debug tool so that I can check your second comment flow context and BR stooping the closure?

Thanks your kind help.