<?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 create sys property Reference type and List Type in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098220#M1579</link>
    <description>&lt;P&gt;How to create sys property Reference type and List Type so that we can select values from table instead of adding comma separated sys_ids.&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>Thu, 07 Nov 2024 04:12:50 GMT</pubDate>
    <dc:creator>Varsha A</dc:creator>
    <dc:date>2024-11-07T04:12:50Z</dc:date>
    <item>
      <title>How to create sys property Reference type and List Type</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098220#M1579</link>
      <description>&lt;P&gt;How to create sys property Reference type and List Type so that we can select values from table instead of adding comma separated sys_ids.&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>Thu, 07 Nov 2024 04:12:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098220#M1579</guid>
      <dc:creator>Varsha A</dc:creator>
      <dc:date>2024-11-07T04:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sys property Reference type and List Type</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098252#M1580</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/179339"&gt;@Varsha A&lt;/a&gt;&amp;nbsp;Navigate to sys_properties.list and click on new to create a new property.&lt;/P&gt;&lt;P&gt;For reference type:&lt;/P&gt;&lt;P&gt;Type: Choose Reference from the dropdown.&lt;/P&gt;&lt;P&gt;Reference Table: Choose the target table you want to reference (e.g., cmdb_ci_computer, incident, user, etc.).&lt;/P&gt;&lt;P&gt;Default Value: This can be left empty or can be set to a default sys_id (if needed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for other Choose List from the dropdown.&lt;/P&gt;&lt;P&gt;To utilise properties in script :&lt;/P&gt;&lt;P&gt;Reference Property:&lt;/P&gt;&lt;P&gt;var refValue = gs.getProperty('your_table_reference_property');&lt;/P&gt;&lt;P&gt;var gr = new GlideRecord('cmdb_ci_computer');&lt;/P&gt;&lt;P&gt;gr.get(refValue); // Retrieves the referenced record based on the sys_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;List Property:&lt;/P&gt;&lt;P&gt;var listValue = gs.getProperty('your_table_list_property');&lt;/P&gt;&lt;P&gt;var sysIds = listValue.split(','); // Split the comma-separated sys_ids&lt;/P&gt;&lt;P&gt;var gr = new GlideRecord('cmdb_ci_computer');&lt;/P&gt;&lt;P&gt;gr.addQuery('sys_id', 'IN', sysIds);&lt;/P&gt;&lt;P&gt;gr.query();&lt;/P&gt;&lt;P&gt;while (gr.next()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // Process each record in the list or add your logic as per your requirement.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 04:51:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098252#M1580</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2024-11-07T04:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sys property Reference type and List Type</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098255#M1581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/179339"&gt;@Varsha A&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did not understand you fully, Are you trying to get the reference value from property? Please explain bit more your requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 04:53:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098255#M1581</guid>
      <dc:creator>Runjay Patel</dc:creator>
      <dc:date>2024-11-07T04:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sys property Reference type and List Type</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098394#M1582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Community Alums&amp;nbsp;&lt;/P&gt;&lt;P&gt;we don't have type reference&amp;nbsp; available : "Type: Choose Reference from the dropdown."&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 07:15:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098394#M1582</guid>
      <dc:creator>Varsha A</dc:creator>
      <dc:date>2024-11-07T07:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sys property Reference type and List Type</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098397#M1583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/100741"&gt;@Runjay Patel&lt;/a&gt;&amp;nbsp;, yes i want to create property of type reference or List, so that i can select values from table.&lt;/P&gt;&lt;P&gt;e.g. i would like to select user from the reference field.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 07:18:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098397#M1583</guid>
      <dc:creator>Varsha A</dc:creator>
      <dc:date>2024-11-07T07:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sys property Reference type and List Type</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098431#M1584</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/179339"&gt;@Varsha A&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for reference type why you wanna create property, you can create dictionary of reference type and give ref table as User. It will give you option to select user for that field. Why are you referring to create property here, Still i didn't get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Runjay Patel - ServiceNow Solution Architect&lt;BR /&gt;YouTube: &lt;A href="https://www.youtube.com/@RunjayP" target="_blank"&gt;https://www.youtube.com/@RunjayP&lt;/A&gt;&lt;BR /&gt;LinkedIn: &lt;A href="https://www.linkedin.com/in/runjay" target="_blank"&gt;https://www.linkedin.com/in/runjay&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 07:49:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098431#M1584</guid>
      <dc:creator>Runjay Patel</dc:creator>
      <dc:date>2024-11-07T07:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sys property Reference type and List Type</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098503#M1585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/100741"&gt;@Runjay Patel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it in same way, but i am unable to display it on property ui page,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://snhackery.com/2019/01/16/reference-type-system-properties-part-iii/" target="_self"&gt;https://snhackery.com/2019/01/16/reference-type-system-properties-part-iii/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and also see same type of requirement here,&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/community/developer-forum/make-a-system-property-where-the-choices-should-be-like-a-quot/m-p/1560509" target="_self"&gt;https://www.servicenow.com/community/developer-forum/make-a-system-property-where-the-choices-should-be-like-a-quot/m-p/1560509&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do let me know if you have idea on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 08:57:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098503#M1585</guid>
      <dc:creator>Varsha A</dc:creator>
      <dc:date>2024-11-07T08:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sys property Reference type and List Type</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098542#M1587</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/179339"&gt;@Varsha A&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Reference Field in the Property Form Layout:&lt;/P&gt;&lt;P&gt;To enable selection from a table, customize the layout of the sys_properties form:&lt;/P&gt;&lt;P&gt;Go to System UI &amp;gt; Form Layout and select the sys_properties table.&lt;/P&gt;&lt;P&gt;Add a Reference field (e.g., u_custom_reference) and configure it to reference the desired table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This creates a field in the system properties where users can select a single record from the specified table.&lt;/P&gt;&lt;P&gt;I wanted to say same as point 2 but just missed few text, sorry for confusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 09:45:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-create-sys-property-reference-type-and-list-type/m-p/3098542#M1587</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2024-11-07T09:45:10Z</dc:date>
    </item>
  </channel>
</rss>

