Return single record using GlideRecord.get() with multiple conditions.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 12:00 PM
Hi,
I am trying to get a single record in a business rule from Case table without using GlideRecord.next() as it is giving following error
QueryEventLogger: Invalid query detected, please check logs for details [Unknown field in table sn_customerservice_case]
Can we use GlideRecord.get('name','value'); for multiple conditions when we know its going to return a single record.
If yes, can you share the syntax for it?
Thanks in advance.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 12:09 PM
GlideRecord.get('name','value'); - Yes, you can. However, it will still return only 1 record.
Surely, you would have gone through documentation.
