InfiniSuite SDK
  • Introduction
  • SDK & Scripting
    • Building Applications
    • Widgets
    • Classes
      • BaseApp
      • DashboardApp
      • EntityApp
      • FormApp
      • ListApp
      • Menu
      • Report
      • ReportQueryApp
      • Toolbar
      • TransactionApp
    • Libraries
      • ApiLib
      • AppLib
      • CacheLib
      • ChartLib
      • ExportLib
      • ImportLib
      • InfobarLib
      • LogLib
      • MainLib
      • MessageLib
      • RqlLib
      • ScriptLib
      • SpreadsheetLib
      • SystemLib
      • TabLib
      • TransactionGridLib
    • Sample Code
      • Entity App
      • Using Radiobuttons
  • REST API
    • Using the REST API
      • Entity Endpoint Summary
      • Authentication
      • Filters
      • Using RQL to Query Data
    • REST Endpoints
      • Account
      • Address
      • Application
      • Box1099
      • Class
      • CompanySetup
      • Contact
      • Favorite
      • Form1099
      • Item
      • Job
      • List
      • ListItem
      • Log
      • Note
      • Relationship
      • SalesTax
      • SalesTaxGroup
      • SalesTaxGroupItem
      • Task
      • Term
      • Transaction
      • TransactionDetail
      • Unit
  • Data Model & Schema
    • Data Model
    • Business Object Schemas
    • Tables
      • account
      • address
      • class
      • companysetup
      • contact
      • item
      • job
      • lead
      • list
      • listitem
      • relationship
      • task
      • term
      • transaction
      • unit
    • Views
      • accountbalanceview
      • accountbalanceyearmonthview
      • accountviewcompact
      • addressview
      • billview
      • classview
      • contactview
      • customerbalance
      • customerinvoicebodetail
      • customerinvoiceboheader
      • customerinvoicetotal
      • customeropeninvoices
      • customeropeninvoicetotal
      • customerpaymenttotal
      • itemview
      • listitemview
      • modelrelationview
      • openbillview
      • salestaxgroupitemview
      • scriptview
      • taskview
      • transaction_balance_view
      • transactiondetailview
      • transactiondetailviewcompact
      • transactiondetailviewnooffset
      • transactiondetailviewoffset
      • transactionview
      • transactionviewcompact
      • trialbalanceview
      • vendorbalance
  • Reference
    • Account Types
    • Field Types
    • Script Types
    • Tab Types
    • Transaction Types
    • Grid Filters
  • Setup & Configuration
    • Application Manager
    • Schema Manager
    • Script Manager
    • Bundle Manager
    • Text Localization
  • License
    • Open Source Licenses
Powered by GitBook
On this page
  • Overview
  • Notes
  • Examples
  • RQL Keywords
  • Operators
  • Includes

Was this helpful?

  1. REST API
  2. Using the REST API

Using RQL to Query Data

Overview

  • RQL converts SQL-like commands into filtered REST calls.

  • RQL supports 'relations' (include) that allows data to be joined in at runtime without using SQL.

  • Can be safely used on the client or on the server.

Notes

  • When using 'include' the fields that support the foreign keys must either be specified in the field list or '*' must be used to include all fields.

Examples

  • get * from account order by accountid

  • get rowid, itemid, itemtypeuid from itemview where itemtypeuid=='stockitem' order by itemid

  • get rowid, transactionid, transactiontyperowid, description, transactiondate, totalamount, isprint, isactive, relationshiprowid, paymentmethodlistitemrowid from transaction where transactiontyperowid==17 include paymentmethod, relationship, transactiontype

RQL Keywords

Key Word

Description

GET

FROM

WHERE

ORDER BY

INCLUDE

Operators

Description

Operator

Equals

==

Not Equals

!=

Less Than

<

Greater Than

>

Less Than or Equal To

<=

Great Than or Equal To

>=

Contains

=in=

Like

=like=

Not Like

=nlike=

AND

;

OR

,

Includes

Model

Include Keyword

Relationship

Type

Returns

Account

notes

account.rowid -> note.accountrowid

1:n

array

Account

accounttype

account.accounttyperowid -> accounttype.rowid

1:1

object

Address

notes

address.rowid -> note.addressrowid

1:n

array

Contact

notes

contact.rowid -> note.contactrowid

1:n

array

Contact

tasks

contact.rowid -> task.contactrowid

1:n

array

Item

notes

1:n

array

Job

notes

1:n

array

Relationship

addresses

1:n

array

Relationship

contacts

1:n

array

Relationship

notes

1:n

array

Relationship

tasks

1:n

array

Task

notes

1:n

array

Transaction

transactiondetails

1:n

array

Transaction

transactiontype

1:1

object

Transaction

relationship

1:1

object

Transaction

address1

1:1

object

Transaction

address2

1:1

object

Transaction

address3

1:1

object

Transaction

notes

1:n

array

Transaction

tasks

1:n

array

Transaction

customermessage

1:1

object

Transaction

paymentmethod

1:1

object

Transaction

priority

1:1

object

Transaction

salessource

1:1

object

Transaction

salesstatus

1:1

object

Transaction

saletype

1:1

object

Transaction

shippingmethod

1:1

object

Transactionview

contact

1:1

object

PreviousFiltersNextREST Endpoints

Last updated 5 years ago

Was this helpful?