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

suvro
Mega Sage
Mega Sage

Yes Business Rule will be your last option. I am thinking about are there any to-dos 

Close when : All to-dos are completed --> Do we have other options here

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

@Kohei 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

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

Hello

Thank you for your reply.

I have configured as your suggetion but it is not working.

I have tested in flow desinger and it works fine but when I have raised a case from ESC the case stays ready status

Do you have any idea for the possible cause?