Description of the HR Case Showing the variables which are not filled in the form
This content was last updated in 2022. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 06:53 AM
Hello all ,
I have submitted the HR Case from portal by filling up a form. There are many variables which are dependent on each other. Based on my selection , I have submitted the case.
Usually , the behaviour of the system is to capture all the details/ answers from the form and put it in the Description of the case.
Here in my scenario, it is working same but the variables which I have not filled/not selected/unanswered is also shown in the description as False/empty by giving the name of the variable.
I donot want the unfilled /unanswered variables to be seen in the description of the case . Is this possible to achieve ?
If yes please let me know on how to proceed on this !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 06:59 AM
Hello Shruthi.
In order to do that you need to check how mapping is done !
Is it done through record producer script ?
if yes while mapping fields using current.your_field_name = producer.your_variable name check if the producer.variable name is. not empty and then map it like below
if(producer.variables_name!='')
{
current.your_field_name = producer.your_variable_name;
}
MARK MY ANSWER CORRECT IF IT HELPS YOU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 01:47 PM
The OOB Record Producer script (see below) should only copied the updated variables to the Description of the resulting HR Case.
new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);