<?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 Issue with Appending MRVS Data to Record Description in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3410749#M5179</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;I have created a Record Producer that includes a Multi-Row Variable Set (MRVS). My objective is to automatically append the values from the MRVS to the record's description field upon submission of a request.&lt;BR /&gt;I attempted to achieve this using an "After Insert" Business Rule; and also from Reocrd producer script section--&amp;gt;however, the variables within the MRVS are not being appended as expected.&lt;BR /&gt;Could anyone please guide me on how to implement this functionality effectively?&lt;BR /&gt;Thank you in advance for your support.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2025 22:35:28 GMT</pubDate>
    <dc:creator>kanvapuriga</dc:creator>
    <dc:date>2025-10-22T22:35:28Z</dc:date>
    <item>
      <title>Issue with Appending MRVS Data to Record Description</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3410749#M5179</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I have created a Record Producer that includes a Multi-Row Variable Set (MRVS). My objective is to automatically append the values from the MRVS to the record's description field upon submission of a request.&lt;BR /&gt;I attempted to achieve this using an "After Insert" Business Rule; and also from Reocrd producer script section--&amp;gt;however, the variables within the MRVS are not being appended as expected.&lt;BR /&gt;Could anyone please guide me on how to implement this functionality effectively?&lt;BR /&gt;Thank you in advance for your support.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 22:35:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3410749#M5179</guid>
      <dc:creator>kanvapuriga</dc:creator>
      <dc:date>2025-10-22T22:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Appending MRVS Data to Record Description</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3411152#M5190</link>
      <description>&lt;P&gt;Could you share the code you've written for your record producer script? That way, we can review and provide advice on what might be the issue&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 10:10:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3411152#M5190</guid>
      <dc:creator>Kieran Anson</dc:creator>
      <dc:date>2025-10-23T10:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Appending MRVS Data to Record Description</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3411203#M5192</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/832913"&gt;@kanvapuriga&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can achieve this by using a &lt;STRONG&gt;Record Producer Script&lt;/STRONG&gt; that retrieves the rows from your &lt;STRONG&gt;Multi-Row Variable Set (MRVS)&lt;/STRONG&gt;, iterates through each row, and then appends those values to the &lt;STRONG&gt;description&lt;/STRONG&gt; field of the generated record (e.g., an &lt;STRONG&gt;incident&lt;/STRONG&gt; or a &lt;STRONG&gt;sc_request&lt;/STRONG&gt;).&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var mrvsName = "mobile_devices_set"; // Replace with your MRVS variable set name
var mrvsVariables = {                // Map display labels to MRVS field names
    "Device Type": "device_type",
    "Storage": "storage",
    "Color": "color",
    "Quantity": "quantity"
};

var mrvs = JSON.parse(producer[mrvsName]);
var mrvsDetails = generateMrvsDetails(mrvs, mrvsVariables);
current.description = (current.description || '') + '\n--- Mobile Devices ---\n' + mrvsDetails;

// Function to generate MRVS details string
function generateMrvsDetails(mrvsArray, variablesMapping) {
    if (!mrvsArray || mrvsArray.length === 0) {
        return '\n(No entries provided in the MRVS)\n';
    }

    var details = '';
    for (var i = 0; i &amp;lt; mrvsArray.length; i++) {
        var row = mrvsArray[i];
        details += '\n--- Entry ' + (i + 1) + ' ---\n';
        for (var label in variablesMapping) {
            var fieldName = variablesMapping[label];
            details += label + ': ' + (row[fieldName] || '') + '\n';
        }
    }
    return details;
}&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;You can also move &lt;STRONG&gt;generateMrvsDetails&lt;/STRONG&gt; function to a separate script include if you want to use this in multiple record producers.&lt;/SPAN&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MIftikhar_1-1761217294149.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/478431iFC8594C9D7A4843A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MIftikhar_1-1761217294149.png" alt="MIftikhar_1-1761217294149.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MIftikhar_0-1761217272536.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/478430i8E0602C272CBBF9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MIftikhar_0-1761217272536.png" alt="MIftikhar_0-1761217272536.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;If my response helped, please mark it as the accepted solution so others can benefit as well.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 11:09:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3411203#M5192</guid>
      <dc:creator>miftikhar20</dc:creator>
      <dc:date>2025-10-23T11:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Appending MRVS Data to Record Description</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3411217#M5193</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/832913"&gt;@kanvapuriga&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is a duplicate thread.&lt;/P&gt;
&lt;P&gt;I already shared solution/approach in your other thread.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/issue-with-appending-mrvs-variables-to-record-description/td-p/3410750" target="_blank" rel="noopener"&gt; Issue with Appending MRVS variables to Record Description&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 11:19:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-appending-mrvs-data-to-record-description/m-p/3411217#M5193</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-10-23T11:19:13Z</dc:date>
    </item>
  </channel>
</rss>

