<?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 add only unique value in a field in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/how-to-add-only-unique-value-in-a-field/m-p/3024376#M698</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to add only unique value in a field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;cmdb_hardware_product_model table I have a field called Barcode, In this field I want add a value, same value If I am trying to enter in any another record in model table, it needs to through an error.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;EX: I am having 10 records in model table, In one record I have entered Hopeforthebest in Barcode field. If I enter same value in remaining 9 records, then It should show an error message.&lt;/SPAN&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;&lt;SPAN&gt;&lt;SPAN class=""&gt;How can we achieve this&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 06:14:38 GMT</pubDate>
    <dc:creator>Gopal14</dc:creator>
    <dc:date>2024-08-22T06:14:38Z</dc:date>
    <item>
      <title>How to add only unique value in a field</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-add-only-unique-value-in-a-field/m-p/3024376#M698</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to add only unique value in a field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;cmdb_hardware_product_model table I have a field called Barcode, In this field I want add a value, same value If I am trying to enter in any another record in model table, it needs to through an error.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;EX: I am having 10 records in model table, In one record I have entered Hopeforthebest in Barcode field. If I enter same value in remaining 9 records, then It should show an error message.&lt;/SPAN&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;&lt;SPAN&gt;&lt;SPAN class=""&gt;How can we achieve this&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:14:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-add-only-unique-value-in-a-field/m-p/3024376#M698</guid>
      <dc:creator>Gopal14</dc:creator>
      <dc:date>2024-08-22T06:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add only unique value in a field</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-add-only-unique-value-in-a-field/m-p/3024380#M699</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/317165"&gt;@Gopal14&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can make utilize the UNIQUE featue for that particular field and change the value to "true"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MurthyCh_0-1724307617103.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/380788iEF6EDC48ACD57F0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MurthyCh_0-1724307617103.png" alt="MurthyCh_0-1724307617103.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Before doing that you need to remove duplicate information if exists.&lt;/P&gt;
&lt;P&gt;Hope it helps:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:21:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-add-only-unique-value-in-a-field/m-p/3024380#M699</guid>
      <dc:creator>Murthy Ch</dc:creator>
      <dc:date>2024-08-22T06:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add only unique value in a field</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-add-only-unique-value-in-a-field/m-p/3024389#M700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/317165"&gt;@Gopal14&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can achieve this by two ways-&lt;/P&gt;&lt;P&gt;on dictionary you can set it as unique true.&lt;/P&gt;&lt;P&gt;or another way is writing a BR before insert/update&amp;nbsp; - check barcode value is existing in any record if&amp;nbsp; yes then abort the action and show error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;P&gt;Vishakha Yadav&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:30:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-add-only-unique-value-in-a-field/m-p/3024389#M700</guid>
      <dc:creator>vishakhayadav24</dc:creator>
      <dc:date>2024-08-22T06:30:01Z</dc:date>
    </item>
  </channel>
</rss>

