workflow on catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 05:59 AM
Hi,
I have a reference(sys_user) type variable in catalog item i should send approval to users department head it should be dynamic

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 06:14 AM
Hi there,
Please share what you've setup, what you've tried, where you exactly need help with.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 07:26 AM
i hv created a catalog item in that i have a variable called Employee (referencing user table) when i submit form approval should go to employees department head it should be done using workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 07:46 AM
Hi @dixitreddy
Do you have department head configured in Department [ cmn_department ] table, if yes then use the dot walking and reach till department head ( Employee -> Department -> Department Head ).
Use the below code for reference and resolve any run time issue.
answer = [];
answer.push(current.variables.employee.department.dept_head); // replace the variable employee with correct variable name
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution