- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2023 08:14 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2023 01:01 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2023 08:50 PM
Have you checked department is showing for Non-Admin user?
Regards, Shekhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2023 08:53 PM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2023 09:00 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2023 10:55 PM
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