Mapping Record producer field to HR case form field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 08:29 AM
Hi Team,
On a record producer I have tried to map a Lookup select box with category field on a Hr Service Case form using record producer script.
I have used below script but instead of mapping with the choice already defined, it is creating the new choice in category field. Please help me on this?
Record producer (filed):- tool_provision (value comes in "u_variable option" table)
HR case form (field) :- u_hr_service_category (it is a Custom Filed and Value Comes in sys_choice table)
Script :-
note-Without Field map we need complete this functionality (using record producer script)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 10:24 AM
@Community Alums Can you share the type specification screenshot of your look up select box.
Also please confirm if u_hr_service_category is a reference field or a choice field, and if tool_provision returns a sys_id or a choice value.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 10:45 AM
u_hr_service_category is a choice field and tool_provision returns a choice value

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 11:51 AM
@Community Alums HR Service Category is a dependent field. Could this be the reason why a new choice is getting created?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 09:14 PM