<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Need to display the variable value in additional comments in Virtual Agent forum</title>
    <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180552#M15123</link>
    <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/792881"&gt;@suuriyas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the record producer script use this&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;current.comments = producer.description;&lt;/LI-CODE&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 07:39:04 GMT</pubDate>
    <dc:creator>Ankur Bawiskar</dc:creator>
    <dc:date>2025-02-18T07:39:04Z</dc:date>
    <item>
      <title>Need to display the variable value in additional comments</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180529#M15118</link>
      <description>&lt;P&gt;HI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:17:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180529#M15118</guid>
      <dc:creator>suuriyas</dc:creator>
      <dc:date>2025-02-18T07:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display the variable value in additional comments</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180546#M15121</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Navigate to Service catalog -&amp;gt; Record producers -&amp;gt; Open the record producer&lt;/P&gt;
&lt;P&gt;Add below line to the record producer script&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;current.comments = producer.description;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:34:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180546#M15121</guid>
      <dc:creator>Shruti</dc:creator>
      <dc:date>2025-02-18T07:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display the variable value in additional comments</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180551#M15122</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/792881"&gt;@suuriyas&lt;/a&gt;&amp;nbsp; You try the below to get the value passed to additional comments,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the OOB, on the "Create Incident" record producer I have variable and the script as below which passes the value to "Description" field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SujathaVM_0-1739863974250.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/420133i09ED409378F244CF/image-size/medium?v=v2&amp;amp;px=400" alt="SujathaVM_0-1739863974250.png" title="SujathaVM_0-1739863974250.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SujathaVM_1-1739864046862.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/420134i01858FE308EBCBAD/image-size/medium?v=v2&amp;amp;px=400" alt="SujathaVM_1-1739864046862.png" title="SujathaVM_1-1739864046862.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your scenario, I had commented the line no 34 and have passed it to "Additional Comments" as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SujathaVM_2-1739864131942.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/420135i994AC3B6AA56AAEC/image-size/medium?v=v2&amp;amp;px=400" alt="SujathaVM_2-1739864131942.png" title="SujathaVM_2-1739864131942.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By doing this, the value is passed to additional comments of the record from the variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SujathaVM_4-1739864381338.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/420138iA1093A4F8FC4CF8C/image-size/medium?v=v2&amp;amp;px=400" alt="SujathaVM_4-1739864381338.png" title="SujathaVM_4-1739864381338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: Make sure the variable database value is matching your syntax accordingly.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:40:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180551#M15122</guid>
      <dc:creator>sujitha16</dc:creator>
      <dc:date>2025-02-18T07:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display the variable value in additional comments</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180552#M15123</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/792881"&gt;@suuriyas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the record producer script use this&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;current.comments = producer.description;&lt;/LI-CODE&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:39:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180552#M15123</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-18T07:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display the variable value in additional comments</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180555#M15124</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/792881"&gt;@suuriyas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please us the below script in record producer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (producer.description) {&lt;BR /&gt;current.work_notes = "User entered description: " + producer.description;&lt;BR /&gt;current.comments = producer.description; // For Additional Comments&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:39:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-display-the-variable-value-in-additional-comments/m-p/3180555#M15124</guid>
      <dc:creator>V V Satyanaraya</dc:creator>
      <dc:date>2025-02-18T07:39:56Z</dc:date>
    </item>
  </channel>
</rss>

