- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:04 AM
Hi All,
I m using record producer to create an Incident record.
There are 4 variables in my record producer where I need to include all these variable questions with answers into the Incident record Description field.
Could you please guide me how can this be achieved?
Variables in Record producer:
1. Date of issue
2.Time of Issue
3.How many users affected
4. Required Information
I want the description field to appear in the Incident form something like this:
Below are the details
1. Date of issue : 17-10-2023
2.Time of Issue: 10 CET
3.How many users affected: 2
4. Required Information : Test
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:14 AM
Hi Renu,
In the Record producer for the Incident you can try adding something as below to the Entitlement script
var dateis=producer.date_of_issue;//replace the variabledate_of_issue name accordingly
var timeis=producer.tiem_of_isse;//replace the variable time_of_issue name accordingly
//so and and so forth for other variables
current.description=dateis+' '+timeis;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:27 AM
Hi @Renu9 ,
In the Record producer for the Incident you can try adding below script in producer script
var date=producer.date_of_issue;//replace the variabledate_of_issue name accordingly
var time=producer.time_of_isse;//replace the variable time_of_issue name accordingly
var affectedUsers=producer.how_many_users_affected;//replace the variable how_many_users_affected name accordingly
var requiredInfo=producer.required_information;//replace the variable required_information name accordingly
current.description=date+' '+time+' '+affectedUsers+' '+requiredInfo;
Please be sure to bookmark this article as well as mark it as Helpful if you thought it was helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:14 AM
Hi Renu,
In the Record producer for the Incident you can try adding something as below to the Entitlement script
var dateis=producer.date_of_issue;//replace the variabledate_of_issue name accordingly
var timeis=producer.tiem_of_isse;//replace the variable time_of_issue name accordingly
//so and and so forth for other variables
current.description=dateis+' '+timeis;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 06:14 AM
Script field and not Entitlement Script of Record producer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:18 AM
Please share what script did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:27 AM
Hi @Renu9 ,
In the Record producer for the Incident you can try adding below script in producer script
var date=producer.date_of_issue;//replace the variabledate_of_issue name accordingly
var time=producer.time_of_isse;//replace the variable time_of_issue name accordingly
var affectedUsers=producer.how_many_users_affected;//replace the variable how_many_users_affected name accordingly
var requiredInfo=producer.required_information;//replace the variable required_information name accordingly
current.description=date+' '+time+' '+affectedUsers+' '+requiredInfo;
Please be sure to bookmark this article as well as mark it as Helpful if you thought it was helpful.