Variables used in the Where Clause of a Database View.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2024 01:01 PM
Is it possible to use a variable in the where clause when creating a database view?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2024 06:19 PM - edited ‎01-11-2024 08:25 PM
Hi @rgthomas
it's not clear what you mean with "variable" but no, it's not possible. You are only allowed to use existing column names for the related tables.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2024 08:18 PM
Hi @rgthomas ,
As maik mentioned no
ServiceNow does not directly support the use of variables in the WHERE clause when creating a database view. The SQL query for a database view in ServiceNow is typically static and predefined.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2024 08:56 PM
what's your business requirement?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader