Record Producer --> Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2025 02:57 AM
Hello Servicenow Family,
Can someone please help me on this.
Thank in advance!.
When the user submit the below catalogue form,.. below is the code for
populate when user category
}
After submitting the form, the data is transform into incident form, automatically (Record prodcuer catalog item), please write acode for the below requirement
Assignment group=' abc,
Configuration item = 'asd;
Service = ' T*E '
Category should be='Travel'
sucategory = ' Ticket booking'
Short descrption will be = 'select category' + ' | ' 'select card incindent';
Description is =(please provide information)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2025 03:13 AM
This is a simple record producer script.
current.assignment_group.setDisplayValue('assignment_group_name');
current.cmdb_ci.setDisplayValue('ci name');
current.service_offering.setDisplayValue('service name');
current.category='';// pass. cat value
current.subcategory=''; // pass subcat value
current.short_description = producer.category + " | " + producer.card_incident;
current.description = "(please provide information)"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2025 03:21 AM
Hi @ajaynalabol ,
Since its a record Producer, use record producer script as below
current.setValue("assignment_group", "sys_id of the assignment group abc");
current.setValue("configuration_item", "sys_id of the configuration item");
current.setValue("service", "sys_id of the service"); //since its a reference field
current.setValue("category", "Travel");
current.setValue("subcategory", "Ticket Booking");
current.setValue("short_description", Producer.select_category_backend_name+" "+"|"+" "+Producer.Select.Card_backend_name);
current.setValue("description", Producer.please_provide_details_variable_name_bakend_value);
current.update();
/*
1)please check variable backend value ands replace accordingly
2)use system property instead of direct sys_ids"
*/
Record Producer script - location
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2025 09:37 PM
Hi @ajaynalabol ,
If my response answered your question, you can close the loop or please feel free to ask any follow-up questions!
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2025 03:53 AM
so what did you write and what's not working?
It's an easy requirement.
Unless you write you won't learn.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
