hr\_ActivityUtils - Scoped
On this page
hr_ActivityUtils- Scoped
The hrActivityUtils script include enables you to create HR cases from a record producer.
This script include requires the HR Lifecycle Events plugin (com.sn_hr_lifecycle_events) and runs in the sn_hr_le namespace.
Parent Topic:Server API reference
hr_ActivityUtils - createCaseFromProducer(GlideRecord current, Object producer, String cat_item.sys_id)
Creates a case from a record producer and service. This method is intended to be called as-is to create a producer and does not require supplying data.
The following variables can be configured in a record producer to provide additional capabilities as follows:
-
job– References sn_hr_core_job and maps to subject_person_job in an HR case -
opened_for– References sys_user and maps opened_for in an HR case -
concurrent_job– If the record producer includes this variable (by activating checkbox) and parameters have job information, creates a new job in sn_hr_core_job table
This method is intended to be called as-is to create a producer and does not require supplying data.
new sn_hr_core.hr_ActivityUtils(current).createCaseFromProducer(producer, cat_item.sys_id);
Keep exploring.
Find another answer, or bring this documentation into your own tools.