Record producer script for reference field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 01:02 AM
Hi,
I have a requirement to create a record producer for users to create new incident through portal. However there is one key requirement when user select choices on "Services Selection" then it should map with reference value in product field on incident form.
I have created record producer script to map Service Selection with Product on incident from, but when record created through portal reference product field populate but other field which is dot walk through product field (Business service, category, subcategory) field does not auto populate.. These all the fields are from u_product table.
Can someone please help me out here?
var services = producer.u_service_selection;
if(services == 'Email'){
current.u_product = "e21e56954f1ba200aa6bd0311310c750";//Email
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 01:15 AM
Hi,
you need to set those from record producer script itself
Business service, category, subcategory
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 12:57 PM
Thanks for the response.
When product is populated then other fields are auto populate in the form backend. I am looking for similar behavior through this record producer as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 09:08 PM
If you want this on the record producer form then you will require onChange Catalog Client Script on that variable and then populate those values in the other variables
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader