Copy Service catalog variables in HR case/task

Sohini Kar
Tera Expert

This is my requirement:

1) Need to create a service catalog.

2) After we raise the service catalog, it will create a service request and a separate HR case.

3) Now the main issue is, I am able to create a HR case from service catalog. But HR case does not have the same variables as the service request.

 

How can we copy/move the variables which are in Service catalog form to HR case?

2 REPLIES 2

Max Dore
ServiceNow Employee
ServiceNow Employee

It sounds like you are looking to create and add a variable editor formatter to the HR Case form (depending on your COE)

Please see this: https://docs.servicenow.com/en-US/bundle/vancouver-servicenow-platform/page/product/service-catalog-...

David Aldridge
Giga Guru

Hi @Sohini Kar, HR Cases generally don't use variables. The default is to map values to fields or describe the variables in the Description field of the case. OOTB there is a script include for managing this for HR Catalog items, which you'll see on the default catalog item. You can use the code in that for reference, or you can add the variable editor as suggested by Max. If you add the variable editor, you'll need to introduce this to the HR users though.
The script include is hr_ServicesUtil