How Can I send an approval to a GM of a department?

jamesturney
Tera Expert

Hello All,

 

 I'm stuck with an approval I can't seem to figure out, I'm fairly new to scripting so I apologize if this is something simple.

All of our approvals for the company are sent to the General Manager of a department. Some forms have a reference field that pulls the users department then a second field that pulls the GM of that department. for those requests I'm just pointing to the variable general_manager to send out the approval to the correct person. 

 

For some of our other requests we don't want the requested for fields on the request form so I need to pull this information based on who is opening the request. Below is the path to the General Manager (primary_contact). I thought about having a hidden variable on the form that I could point to but can see this becoming a problem down the road with some of the forms currently in our backlog. Any help is much appreciated!

 

sys_user -> cmn_department -> primary_contact

1 ACCEPTED SOLUTION

jamesturney
Tera Expert

Thank you for the link Sumanth, I actually figured it out on my own without scripting. I completely skipped over the fact I could use the tree picker and find opened by -> department -> general manager. That link had some useful information in it though so thank you!

View solution in original post

2 REPLIES 2

jamesturney
Tera Expert

Thank you for the link Sumanth, I actually figured it out on my own without scripting. I completely skipped over the fact I could use the tree picker and find opened by -> department -> general manager. That link had some useful information in it though so thank you!