Hi,
I have a JavaScript code on a screen in custom content area. I also have a field called serial number on that screen. When value of this field changes, it will automatically search for a record with the value provided. The problem is, it appears like i can only use sdata method for searching a record by ID. Is there a way to search for a record by a custom field?
Any suggestions are welcome. Thank you.
Here is the fraction of my code:
crm.sdata({
entity: "aircraft",
where: "air_serialnumber like '" + var1 + "'",
success: successCompany
});
PS: I am not getting any error messages but instead my the retrieved values are 'undefined'.