Copy Service catalog variables in HR case/task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2023 10:23 PM - edited ‎11-06-2023 10:24 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 04:38 AM
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-...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 10:31 PM
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