<?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 Database View Where Clause for List Fields in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706648#M363574</link>
    <description>&lt;P&gt;I'm trying to create a where clause on a Database View, but nothing is working. Table A has a List Field that contains references to Users (like the Watch List Field on the Task Table). Table B is that User Table. I want the where clause to state "the List Field CONTAINS this User" but none of the evaluators seem to product my wanted result. Can someone help me?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 18:49:22 GMT</pubDate>
    <dc:creator>lmcmanamon</dc:creator>
    <dc:date>2017-03-24T18:49:22Z</dc:date>
    <item>
      <title>Database View Where Clause for List Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706648#M363574</link>
      <description>&lt;P&gt;I'm trying to create a where clause on a Database View, but nothing is working. Table A has a List Field that contains references to Users (like the Watch List Field on the Task Table). Table B is that User Table. I want the where clause to state "the List Field CONTAINS this User" but none of the evaluators seem to product my wanted result. Can someone help me?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:49:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706648#M363574</guid>
      <dc:creator>lmcmanamon</dc:creator>
      <dc:date>2017-03-24T18:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Where Clause for List Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706649#M363575</link>
      <description>&lt;P&gt;Hi Lauren,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;There is no such operators present which operates as 'CONTAINS' or similar. But there are couple or workarounds present. One is using report and another is to use Before query Business rule. Please find the relevant threads below:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1. &lt;A title="CAN WE USE " contains=""&gt;CAN WE USE "CONTAINS" OR "LIKE" OPERATOR IN WHERE CLAUSE OF DATABASE VIEW&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2. &lt;A title="Database View Table Where Clause to contain NULL" __default_attr="218917" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Database View Table Where Clause to contain NULL" data-renderedposition="115_24_352_16" href="https://www.servicenow.com/community?id=community_question&amp;amp;sys_id=77c107a9db98dbc01dcaf3231f961908"&gt;Database View Table Where Clause to contain NULL&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I hope this helps.&lt;/SPAN&gt;Please&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;mark &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;correct&lt;/EM&gt;&lt;/SPAN&gt;/&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;helpful &lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;based on impact&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:19:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706649#M363575</guid>
      <dc:creator>amlanpal</dc:creator>
      <dc:date>2017-03-24T19:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Where Clause for List Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706650#M363576</link>
      <description>&lt;P&gt;Hi &lt;A title="lmcmanamon" __default_attr="54586" __jive_macro_name="user" class="jive-link-profile-small jive_macro jive_macro_user" data-id="54586" data-objecttype="3" data-orig-content="lmcmanamon" data-renderedposition="10.5_24_102_16" data-type="person" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=424116e5db981fc09c9ffb651f961947"&gt;lmcmanamon&lt;/A&gt;,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: arial,sans-serif; color: #666666;"&gt;If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: arial,sans-serif; color: #666666;"&gt;If you are viewing this from the community inbox you will not see the correct answer button. &amp;nbsp; If so, please review &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10.5pt; font-family: inherit; color: #0000ee;"&gt;&lt;A title="" _jive_internal="true" data-containerid="2048" data-containertype="14" data-objectid="5601" data-objecttype="102" href="https://www.servicenow.com/community?id=community_article&amp;amp;sys_id=7f1c2e21dbd0dbc01dcaf3231f9619c3"&gt;How to Mark Answers Correct From Inbox View&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Apr 2017 16:35:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706650#M363576</guid>
      <dc:creator>amlanpal</dc:creator>
      <dc:date>2017-04-01T16:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Where Clause for List Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706651#M363577</link>
      <description>&lt;P&gt;I'm sorry, Amlan, but your comment didn't answer my question. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Apr 2017 16:33:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706651#M363577</guid>
      <dc:creator>lmcmanamon</dc:creator>
      <dc:date>2017-04-04T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Where Clause for List Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706652#M363578</link>
      <description>&lt;P&gt;Hello Lauren,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Refer this may be it will help you - &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A title="ServiceNow Admin 101: Observations on Database Views, Part II" __default_attr="5406" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="ServiceNow Admin 101: Observations on Database Views, Part II" data-renderedposition="94_8_430_16" href="https://www.servicenow.com/community?id=community_blog&amp;amp;sys_id=5b0d2ea5dbd0dbc01dcaf3231f961946"&gt;ServiceNow Admin 101: Observations on Database Views, Part II&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Apr 2017 17:32:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706652#M363578</guid>
      <dc:creator>nayanawadhiya1</dc:creator>
      <dc:date>2017-04-04T17:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Where Clause for List Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706653#M363579</link>
      <description>&lt;P&gt;Hi Lauren,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I am having the same issue. were you able to fix the issue?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Nov 2017 22:14:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706653#M363579</guid>
      <dc:creator>Nithya V Sivara</dc:creator>
      <dc:date>2017-11-30T22:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Where Clause for List Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706654#M363580</link>
      <description>&lt;P&gt;Were you able to make this work?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:44:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706654#M363580</guid>
      <dc:creator>JC S_</dc:creator>
      <dc:date>2019-10-29T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Where Clause for List Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706655#M363581</link>
      <description>&lt;P&gt;Yes, by using a where clause of this type:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;INSTR(prefix1.a_list_field ,prefix2.sys_id) &amp;gt; 0&lt;/P&gt;
&lt;P&gt;Where:&lt;BR /&gt;a_list_field is a List of type&amp;nbsp;referenced by prefix2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 22:36:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-where-clause-for-list-fields/m-p/1706655#M363581</guid>
      <dc:creator>Michel Donnat</dc:creator>
      <dc:date>2021-01-21T22:36:30Z</dc:date>
    </item>
  </channel>
</rss>

