Adding an approval for HR case management setup without tasks

KB15
Giga Guru

We have HR case management setup in our organization. Someone has asked if an approval can be added to a record producer form from the HR service portal.

I don't think we're task based so, would it be difficult to add an approval process to specific record producers? Would it just be a matter of adding a workflow to any given record producer? How would the case lifecycle look?

1 ACCEPTED SOLUTION

KB15
Giga Guru

Per ServiceNow, the workflow that checks for approvals was skipping over the evaluation.

In the HR Service Activities workflow under "Is there an approval step" stage, the second if statement was missing some additional conditions:

While the version I had only contained:

if (serviceTemplates.next()}
return 'yes';

It should have been:

		if (serviceTemplates.next()) {
			workflow.scratchpad.serviceActivity = serviceTemplates.getUniqueValue();
			return 'yes';

I don't believe this was modified by anyone and may have been a bug but this is what ServiceNow had modified to make it work.

View solution in original post

8 REPLIES 8

Vinay Mishra3
Mega Guru

Hi,

Approval can be added in HR case, you can use either "Service Activity" or "Life Cycle Event" to send the approval. If you want to send Approval without any conditions the Use "Service Activity" Or if you want to send Approvals in any specific conditions then use "Life Cycle Event".

 

find_real_file.png

 

 

 

 

Please mark helpful/correct if its applicable.

Thanks,

Vinay

I've made a modification to one of our services to test it however the approver doesn't appear in the case after creation. The related list is present in the form. What could be missing?

I figured out that there's a subflow that runs after it goes through the default workflow. It's indicating that there's no approver even though it's set to subject person's manage. Is that no the right spot to place the approver?

find_real_file.png

 

find_real_file.png

May I ask where have changed the manager of the user is it on the HR profile table?