workflow on catalog item

dixitreddy
Tera Contributor

Hi,

I have a reference(sys_user) type variable in catalog item i should send approval to users department head it should be dynamic 

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

dixitreddy
Tera Contributor

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

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

AshishKM_0-1723214637270.png

 

-Thanks,

AshishKM

 

 

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution