public void SalesReceiptQueryUsingoAuth(ServiceContext qboContextoAuth) { QueryService <SalesReceipt> entityQuery = new QueryService <SalesReceipt>(qboContextoAuth); SalesReceipt existing = Helper.FindOrAdd <SalesReceipt>(qboContextoAuth, new SalesReceipt()); List <SalesReceipt> test = entityQuery.ExecuteIdsQuery("SELECT * FROM SalesReceipt where Id='" + existing.Id + "'").ToList <SalesReceipt>(); }