Workflow approval user is not working for Users with itil role but working fine for admins

Yamja
Tera Guru

Hi,

I have a custom table I'm creating a workflow that is multi stage. 1st stage the approval should go to department manager whichever department(reference field which is from department table) they select.

then the manager approves it, it will go to approver group.

The workflow is working if I submited as a admin, but If I am a user the workflow skipping the manager level and directly going to the approver group stage.

 

Below is the script for approver_user trigger for manager level;

answer [];

answer.push(current.u_department.dept_manager);

 

Can some one please let me know how can I achieve.

Thanks.

1 ACCEPTED SOLUTION

Yamja
Tera Guru

Thanks for all who put their time to resolve the issue.

The reason for skipping manager is manager user is inactive in my DEV instance. that's why that stage is skipped.

When I changed the one of dept manager to my name. User with Itil role can submit the request and it is directly going to the manager appoval stage which is me for that department.

 

Thanks again.

View solution in original post

5 REPLIES 5

Shekhar Navhak1
Kilo Sage
Kilo Sage

Have you checked department is showing for Non-Admin user?

Please mark the answer correct/helpful based on Impact.
Regards, Shekhar

Shruti
Mega Sage
Mega Sage

Hi,

Try to put logs and execute the same workflow for same department to reproduce the issue. First try with admin then itil user

gs.info(current.u_department);

gs.info(current.u_department.dept_manager);

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Yamja ,

 

It seems ur ITIL users don't have access to department table.

Kindly provide read access to department table by creating an ACL.

 

Mark my answer helpful & accepted if it helps you resolve your query.

 

Thanks,

Danish

Uday Soni05
Tera Guru

Hi @Yamja,

Also Check if that user's department reference field has Manager populated.

If it is empty it will skip the Approval.

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Uday