Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Database View Where Clause for List Fields

lmcmanamon
Giga Contributor

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?

7 REPLIES 7

Hi Lauren,



I am having the same issue. were you able to fix the issue?



thanks,


Nithya


Were you able to make this work?

Yes, by using a where clause of this type:

INSTR(prefix1.a_list_field ,prefix2.sys_id) > 0

Where:
a_list_field is a List of type referenced by prefix2.