- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2019 10:12 AM
Hi,
We are facing this issue only in Madrid Version.
When we create a case from the HR service portal Subject person field on the HR case table is not getting set with the value we select in the variable which is mapped to the Subject person field.
And Question and Answers are also not getting set to the description field of the HR case even if we update the variable values while creating the case.
But everything works perfectly fine when we create the case by clicking on the "Try It" button on the record producer.
Thanks in Advance
Vidyashree
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2019 01:09 PM
Hi Vidyashree,
Did you try with the following?
Adding the following line to the record producer script:
current.subject_person = producer.<variable_name>;
For example:
current.subject_person = producer.Who_is_this_request_for;
You might need to un-map your variable if you use the previous script.
Let me know if that helps,
Thank you,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2019 10:18 AM
Hi Vidya,
Do you have this line in the Script field on the Record Producer?
new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);
If not, add it and test out creating a case from the HR Service Portal. Hopefully, that will solve the issue.
Also, please make sure you have the correct Record Producer selected on the appropriate HR Service.
I hope this helps!
Thanks,
Holly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2019 11:17 AM
Hi Holly,
Thanks for your reply.
Yes, i have put that line in the record producer.
It works fine in Kingston but we are facing issue in Madrid version only.
Thanks,
Vidyashree

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2019 01:09 PM
Hi Vidyashree,
Did you try with the following?
Adding the following line to the record producer script:
current.subject_person = producer.<variable_name>;
For example:
current.subject_person = producer.Who_is_this_request_for;
You might need to un-map your variable if you use the previous script.
Let me know if that helps,
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2020 09:18 PM
Hi
I am also got the same issue, I was already mention below link,
current.subject_person = producer.variable_name;
but still I am getting "HR Service is not valid for subject person" error, Please suggest.
Thank you,
Sanjay