<?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 How to get sys_id on List Collector multi-row  variable set? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905018#M1106796</link>
    <description>&lt;P&gt;Hi EveryOne,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a record producer "&lt;SPAN&gt;Create Case Contract&lt;/SPAN&gt;" map to Case table, there are multiple rows of variable "Test Case Contract",I use a script to fill variable set's variables into the sc_task table, and in variable set "Test Case Contract", there is a List Collector "&lt;SPAN&gt;attachments&lt;/SPAN&gt;". "&lt;SPAN&gt;attachments&lt;/SPAN&gt;" is reference&amp;nbsp; to the attachment table. How to add a Reference qualifier to List Collector "&lt;SPAN&gt;attachments&lt;/SPAN&gt;"， so that it only displays the files "file1.xlsx" and "file2.xlsx" uploaded when using record producer "Create Case Contract" to create records?I try to use 「javascript&amp;amp;colon;"table_sys_id=" + current.sys_id;'」,it's not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;record producer&lt;/P&gt;&lt;P&gt;&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="1.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349802i18901FC9534981EE/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;multiple rows of variable&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349800iF81A47394C309E4D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Reference qualifier&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349801i875BE32D34F65B92/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current situation,「javascript&amp;amp;colon;"table_sys_id=" + current.sys_id;'」&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349799iFAFA85D1AFC70925/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Expected results：Create a record using the record producer, and display the uploaded attachments in the list collector of the multi line variable set&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349803iC3B4ABCA4EA17689/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 08:32:44 GMT</pubDate>
    <dc:creator>lipan</dc:creator>
    <dc:date>2024-04-22T08:32:44Z</dc:date>
    <item>
      <title>How to get sys_id on List Collector multi-row  variable set?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905018#M1106796</link>
      <description>&lt;P&gt;Hi EveryOne,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a record producer "&lt;SPAN&gt;Create Case Contract&lt;/SPAN&gt;" map to Case table, there are multiple rows of variable "Test Case Contract",I use a script to fill variable set's variables into the sc_task table, and in variable set "Test Case Contract", there is a List Collector "&lt;SPAN&gt;attachments&lt;/SPAN&gt;". "&lt;SPAN&gt;attachments&lt;/SPAN&gt;" is reference&amp;nbsp; to the attachment table. How to add a Reference qualifier to List Collector "&lt;SPAN&gt;attachments&lt;/SPAN&gt;"， so that it only displays the files "file1.xlsx" and "file2.xlsx" uploaded when using record producer "Create Case Contract" to create records?I try to use 「javascript&amp;amp;colon;"table_sys_id=" + current.sys_id;'」,it's not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;record producer&lt;/P&gt;&lt;P&gt;&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="1.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349802i18901FC9534981EE/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;multiple rows of variable&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349800iF81A47394C309E4D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Reference qualifier&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349801i875BE32D34F65B92/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current situation,「javascript&amp;amp;colon;"table_sys_id=" + current.sys_id;'」&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349799iFAFA85D1AFC70925/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Expected results：Create a record using the record producer, and display the uploaded attachments in the list collector of the multi line variable set&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349803iC3B4ABCA4EA17689/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 08:32:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905018#M1106796</guid>
      <dc:creator>lipan</dc:creator>
      <dc:date>2024-04-22T08:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sys_id on List Collector multi-row  variable set?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905026#M1106799</link>
      <description>&lt;P&gt;The method of fixed sys_id was used in the expected result graph (Javascript&amp;amp;colon;"table_sys_id=d2c7f55c97bd0e1043d4b380f053af38";). How to dynamically obtain this sys_id? When creating a record using record producer (not yet submitted), the sys_id of the new record&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="lipan_1-1713773105130.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349807iF6AB760D95A304C0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="lipan_1-1713773105130.png" alt="lipan_1-1713773105130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 08:09:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905026#M1106799</guid>
      <dc:creator>lipan</dc:creator>
      <dc:date>2024-04-22T08:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sys_id on List Collector multi-row  variable set?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905030#M1106801</link>
      <description>&lt;P&gt;Attachments aren't inserted to the database until the record producer is saved, so the attachment records won't show&amp;nbsp; up in that list.&lt;/P&gt;&lt;P&gt;I recommend using the "Attachment" variable type to upload your attachments in a context that's relevant to each row of your variable set.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 08:10:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905030#M1106801</guid>
      <dc:creator>Ryan Duce</dc:creator>
      <dc:date>2024-04-22T08:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sys_id on List Collector multi-row  variable set?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905064#M1106813</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A class="" href="https://www.servicenow.com/community/user/viewprofilepage/user-id/372821" target="_self"&gt;&lt;SPAN class=""&gt;Ryan Duce,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I just tried again. When creating a record using record producer, after uploading the file (which has not yet been submitted), the uploaded attachment will immediately appear in the attachment table. At this time, there is no new record in the case table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;And the 'Attachment' variable type does not seem to be applicable to multi row variable sets,It displays the following error&lt;/P&gt;&lt;P&gt;'Attachment' variable cannot be part of multi-row variable set&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&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="lipan_4-1713774641348.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349823iA6E2ABD5F228726F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="lipan_4-1713774641348.png" alt="lipan_4-1713774641348.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="lipan_3-1713774601651.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349822iA432A874D8C965B9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="lipan_3-1713774601651.png" alt="lipan_3-1713774601651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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="lipan_2-1713774333024.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/349813i6C50A4527A707574/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="lipan_2-1713774333024.png" alt="lipan_2-1713774333024.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 08:30:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905064#M1106813</guid>
      <dc:creator>lipan</dc:creator>
      <dc:date>2024-04-22T08:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sys_id on List Collector multi-row  variable set?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905181#M1106844</link>
      <description>&lt;P&gt;Oh that's really annoying, sorry neither of those tips worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the problem is that current doesn't yet know what the record's sys ID will be. Typically a current object's sys ID will be represented as -1 until the record is saved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will defer to others in this case as I can't think of a way to do this without some hefty customisation. Although you might consider just allowing people to attach files at the top-level record producer and not associating them with each row in the variable set, since there'll be some element of human interaction on the case to validate the attachments and set up the individual contracts.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 09:49:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-sys-id-on-list-collector-multi-row-variable-set/m-p/2905181#M1106844</guid>
      <dc:creator>Ryan Duce</dc:creator>
      <dc:date>2024-04-22T09:49:40Z</dc:date>
    </item>
  </channel>
</rss>

