Approval needs to be trigger to hr partner who is existing in the users table

Servicenow de11
Tera Contributor

Hello,

 

I have a requirement that is in the catalog item workflow approval will trigger to hr parter(customized field) in the users table.

can any one help me how to achieve this.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Kavita_Bhojane
Tera Guru

Hi @Servicenow de11 ,

 

HR Partner field should be reference field. If not you need to first find out Requested For's manager’s HR partner name. Once you got the name you can look for user in User table with the Requested For's manager’s HR partner name. Once you got the user record you can use the sys_id of that user to get approval.

Please mark my answer helpful if you find it useful.

 

Thanks,

Kavita Bhojane

View solution in original post

7 REPLIES 7

Hi @Servicenow de11 ,

 

What are you giving in HR partner field?

Name of HR Partner?

Hi Kavita,

 

For different users there are different HR's

Kavita_Bhojane
Tera Guru

Hi @Servicenow de11 ,

 

HR Partner field should be reference field. If not you need to first find out Requested For's manager’s HR partner name. Once you got the name you can look for user in User table with the Requested For's manager’s HR partner name. Once you got the user record you can use the sys_id of that user to get approval.

Please mark my answer helpful if you find it useful.

 

Thanks,

Kavita Bhojane