Return single record using GlideRecord.get() with multiple conditions.

Apurva Jogal
Kilo Sage

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

Jaspal Singh
Mega Patron

GlideRecord.get('name','value'); - Yes, you can. However, it will still return only 1 record.

Surely, you would have gone through documentation.