- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2018 01:44 PM
The Source (contact_type) field on the sn_hr_core_case form populates with values based upon the How is this accomplished? A business rule, script, etc.? OOTB "Self-Service" auto-populates into the field for cases created from the ESC/HR Portal/HRL Portal but I am curious where the magic happens.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2018 03:08 PM
Eric,
There are multiple parts involved in this based on the trigger point. for instance, let's consider Record Producers. every record producer calls 'hr_ServicesUtil' script include which calls "createCaseFromProducer' function. this function again calls the following function
hr_CaseUtils Script Include - populateCase function. source is parameter. So all the magic happens in below function 🙂
populateCase : function(service, questions, source){
}
Please let me know if you need more information or any questions
Thanks,
Sai
Please mark this answer as correct or Like based on the result.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2018 01:55 PM
It depends on the source. For 'Self-service', this likely comes from the 'Script' field on the record producer that was used to create the ticket. Often for 'Email', that comes from the inbound email that created the ticket. These aren't all set, but they will always be set through the source of the interaction.
Please mark this answer as correct if I've answered your question. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2018 03:08 PM
Eric,
There are multiple parts involved in this based on the trigger point. for instance, let's consider Record Producers. every record producer calls 'hr_ServicesUtil' script include which calls "createCaseFromProducer' function. this function again calls the following function
hr_CaseUtils Script Include - populateCase function. source is parameter. So all the magic happens in below function 🙂
populateCase : function(service, questions, source){
}
Please let me know if you need more information or any questions
Thanks,
Sai
Please mark this answer as correct or Like based on the result.