- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 04:12 PM
I am trying to set a default case state for an HR Service by using the HR Case template. In my personal developer's instance, I modified the General Inquiry HR case template and added the State field with value of "Work in Progress". I also added the Source(contact_type) field to the template with a value of "In Person". If I create the case from the platform, the values default as I have specified. However, if I create the case from the employee service center, then the values do not default. I assume that the record producer must be defaulting the State and Source(contact_type) fields, and the record producer is overriding the HR case template. Is that the expected behavior or is there some way around that? Thanks!
Solved! Go to Solution.
- Labels:
-
Case and Knowledge Management
- 1,554 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 05:59 PM
Hi Dennis,
The hr_serviceUtil script include is setting those values from the function CreateCaseFromProducer. This is why you are getting different values when submitting from the ESC in regards to using the Create New Case in the fulfiller view. I believe around line 56 it is setting the source (contact_type) to self_service.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 09:33 AM
Hi,
I think I ran into the same problem - not so much for 'source' but for "state".
In our business scenario: When the request is submitted there are immediately a bunch of automated things happening so we would like to set it to "WIP", as nobody would manually touch it for a while in order to set it to "WIP" and - bluntly speaking - I'd rather expect the HR template for the case taking precedence than some hidden and probably undocumented script 'setting' :-S
I share the same hesitance as
I'll try the RP variable, though...
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 03:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 03:06 PM
You are right. Setting the source to "In Person" makes no sense from the RP. I was just testing the concept of using the HR case template to set field values 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 03:20 PM
Hi Dennis and Christian,
It was never my intention to have you customize the OOB script include. I just wanted to let you know where this was coming from (technically).
This is good feedback though, and I would encourage you to vote on this idea since this is a way to get this the visibility needed. I believe there are other ways to meet the requirement and the variable was the first to come to mind.
Stay safe, my friends.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2020 08:30 AM
The RP variable works - minor annotation: "2" is the default value for 'task' - for sn_hr_core etc. it seems it should be "18" 😉