CAN WE USE "CONTAINS" OR "LIKE" OPERATOR IN WHERE CLAUSE OF DATABASE VIEW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 07:57 PM
I have written following query
q_search.search_term = interaction.short_description
q_search.search_term(this field is from "ts_query_kb" table)
interaction.short_description(This field is from my custom table)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 09:44 PM
Not according to the wiki:
The Where clause supports these JavaScript conditional operators:
- =, !=, <, <=, >, >=, &&, ||
Database Views - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 10:43 PM
Hi Lars,
Thanks for replying....I know we can use above operator but I cannot achieve my requirement using these operator.
Can we use "CONTAINS" or "LIKE" operator??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 11:05 PM
Can you describe your need for this, maybe we can find an alternative solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2016 01:16 AM
Hi Lars,
I resolved this issue.
I achieved my requirement by creating a Report and I called the script include in one of Report's condition.
Thanks for replying.
Sajan