iOS SDK Samples - Query Operations

Get Records through a COQL Query
          
          
/*- Parameters:
        - selectColumns : Fields that needs to be fetched.*/
 
let params : ZCRMQuery.GetCOQLQueryParams = ZCRMQuery.GetCOQLQueryParams(selectColumns: [ "Check_In_Status" ], criteria: "Check_In_Status = 'planned'" )
//module is the object of getModuleDelegate()
        $module.getRecords( withQueryParams : params ) { result in
            switch result
            {
            case .success(let records, let response) :
              print ("ResponseJSON : \( response.responseJSON )")
            case .failure(let error) :
                print ( "Throws exception : \(error)" )
            }
        }