I written a Record Producer script for auto populate field values on incident form
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 03:03 AM
Hi Community,
I written a Record Producer script for auto populate field values on incident form (using sys id's of field values)
Instead of hard coding with sys id's how to auto populate field values dynamically
Thanks,
Srinivasu
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 04:30 AM
If by dynamically you mean that you have record producer variables of the reference type that are storing the sys_ids, then use the format:
current.assignment_group = producer.variable_name;
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 04:44 AM
Hi @Srinivasu2 ,
Please try below code
if(producer.contact_type == "self-service"){
current.u_categorization = producer.<variable_backend_name>
current.assignment_group = producer.<variable_backend_name>
}
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak