How to searchByCriteria records that are under approval?
I need to search for both approved and pending approval records
Is that possible with this method? Or I need to a different method?
var priceReqID = $Page.record_id;
log(priceReqID);
var records = ZDK.Apps.CRM.Price_List_Item.searchByCriteria("Price_Request:equals:" + priceReqID);