Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 11:34 PM
Hello @Community Alums
You could create from native as well and also you can create through inbound email action and also you can create through HR profile and also you create through Bulk case Creation for the Onboarding and Offboarding.
Yes you can use the Fix script to create HR case please refer the below script and preform required changes accordingly
var hrCase = new GlideRecord('sn_hr_core_case');
hrCase.initialize();
// Set fields for HR Onboarding case
hrCase.short_description = 'New Hire Onboarding for ';
hrCase.opened_for = '8d56406a0a0a0a6b004070b354aada28'; // sys_id of user
hrCase.subject_person = '8d56406a0a0a0a6b004070b354aada28'; // sys_id of user
hrCase.priority = 4;
// Replace with your HR service Sys ID
hrCase.hr_service = '330db1099f231200d9011977677fcf37';
// }
// Insert HR Case record
var caseSysId = hrCase.insert();
gs.info('HR Sys ID: ' + caseSysId);
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You