Reference lookup field values in Client script

Reference lookup field values in Client script

hello all,

I'm using a "ZDK.Apps.CRM.Products.searchByCriteria" function call, which is returning the matching records correctly; however, one of the fields is a lookup field which I need the associated data. I believe there is a way to get this data directly without having to perform another API call using the related id value. Something like

field.getvalues().subfield

Does anyone know the correct syntax?