- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-17-2025 11:17 PM
HI Community,
I have a scenario where in a record producer there is variable called "description" and then submitting the form the value entered in description field need to be displayed in the additional comment of that record.
How can we achieve this?
Thanks in advance
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-17-2025 11:34 PM
Hi
Navigate to Service catalog -> Record producers -> Open the record producer
Add below line to the record producer script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-17-2025 11:34 PM
Hi
Navigate to Service catalog -> Record producers -> Open the record producer
Add below line to the record producer script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-17-2025 11:37 PM - edited â02-17-2025 11:40 PM
@suuriyas You try the below to get the value passed to additional comments,
In the OOB, on the "Create Incident" record producer I have variable and the script as below which passes the value to "Description" field.
For your scenario, I had commented the line no 34 and have passed it to "Additional Comments" as below
By doing this, the value is passed to additional comments of the record from the variable.
Note: Make sure the variable database value is matching your syntax accordingly.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-17-2025 11:39 PM
in the record producer script use this
current.comments = producer.description;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-17-2025 11:39 PM
Hi @suuriyas ,
please us the below script in record producer
if (producer.description) {
current.work_notes = "User entered description: " + producer.description;
current.comments = producer.description; // For Additional Comments
}