QuickBooks Integrator 2020 Python Edition

Questions / Feedback?

ObjSearch Class

Properties   Methods   Events   Configuration Settings   Errors  

ObjSearch is used to search the QuickBooks database.

Syntax

class inqb.ObjSearch

Remarks

ObjSearch is used to search the QuickBooks database. When ObjSearch is called a QuickBooks search is initiated using the specified search filters.

Example (Querying for Invoices)

ObjSearch1.QueryType = qtInvoiceSearch
ObjSearch1.TransactionDateStart = "10/01/2002"
ObjSearch1.EntityName = "Joe Reckless"
ObjSearch1.PaidStatus = psUnpaid
ObjSearch1.Search()
Invoice1.QBResponseAggregate = ObjSearch1.ResultAggregate(0)
Invoice2.QBResponseAggregate = ObjSearch1.ResultAggregate(1)
' etc.
ObjSearch may only be used to search for one type of object at a time. The type of search should be specified in query_type before beginning the search. The maximum number of returned objects may also be specified in max_results.

The search may be executed by calling the search method. After search is called ResultCount will hold the number of results, result_id will hold the Ids returned and result_aggregate will hold information for the objects returned. To instantiate an object, set its QBResponseAggregate property to the appropriate result_aggregate.

One or more search filters may be specified. These filters limit the search to records meeting specified criteria. If no filters are specified, ObjSearch will return all objects in the database, up to the limit specified by max_results.

The following filter may be specified in all searches:

ModifiedDate FilterLimits the search to records last modified before/after specified dates. One or both of modified_date_start and modified_date_end may be specified.

The following filters may be specified when searching for entities (a Customer, Vendor, or Employee). The Name filter may also be specified for Item searches.

Name FilterLimits the search based on the name of the entity. One or both of name_range_start or name_range_end may be specified to limit the search to a range of names. Alternatively, one of name_starts_with, name_ends_with, or name_contains may be specified.
TotalBalance FilterLimits the search to entities with balances at least total_balance_minimum or at most total_balance_maximum (not defined for Employee).

The following filters may be specified when searching for transactions:

RefNumber FilterLimits the search based on the RefNumber (i.e., check number, invoice number, etc.) of the transaction. One or both of ref_number_range_start or ref_number_range_end may be specified to limit the search to a range of RefNumbers. Alternatively, one of ref_number_starts_with, ref_number_ends_with, or ref_number_contains may be specified.
TransactionDate FilterLimits the search to transactions with a date before or after specified dates. One or both of transaction_date_start and transaction_date_end may be specified.
Entity FilterLimits the search to transactions associated with the entity specified by entity_name.
Account FilterLimits the search to transactions associated with the account specified by account_name.

Note that for TimeTracking searches the Account and RefNumber filters are not used.

The following additional filter may be specified for Bill and Invoice objects.

PaidStatus FilterLimits the search either to paid or unpaid bills or invoices only, as specified in paid_status.

The additional filters may be specified for Item objects.

Name FilterLimits the search based on the name of the item (see above).
ItemType FilterLimits the search to the type of item specified by item_type.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

include_line_itemsIndicates whether to include line items in the response.
include_linked_txnsIndicates whether to include linked transactions in the response.
iterate_resultsIndicates whether to perform iterative searches when QBXMLVersion = 5.0 or greater.
max_resultsThe maximum number of results to be returned from a search.
qb_connection_stringAn aggregate consisting of various QuickBooks connection properties.
qb_request_aggregateThe request aggregate.
qb_request_modeDefines whether the request is made online or stored offline.
qb_response_aggregateThe last QBXML response aggregate received from QuickBooks.
qbxml_versionThe version of QBXML used in the outgoing message.
query_typeThe type of search to perform.
remaining_resultsIndicates the number of results left in an iterative search.
result_countThe number of records in the Result arrays.
result_aggregateXML response aggregate returned from QuickBooks.
result_idId of the result aggregate stored in Aggregate .
result_nameName of the result aggregate stored in Aggregate .
retrieve_names_onlyReturn only the names and Ids in the results.
account_idAn account name to search for in a transaction.
account_nameAn account name to search for in a transaction.
account_typeSearch by the type of QuickBooks account.
active_statusLimits the search to active or inactive records only.
entity_idLimits the search to transactions associated with the entity specified by EntityId .
entity_nameAn entity name to search for in a transaction.
item_typeThe type of item to search for.
modified_date_endLatest modified date to search for.
modified_date_startEarliest modified date to search for.
name_containsString which names are to contain.
name_ends_withString which names are to end with.
name_range_endEnding point of a name range.
name_range_startStarting point of a name range.
name_starts_withString which names are to start with.
paid_statusLimits the search to paid or unpaid transactions only.
ref_numberExact RefNumber to search for.
ref_number_containsString which RefNumbers are to contain.
ref_number_ends_withString which RefNumbers are to end with.
ref_number_range_endEnding point of a RefNumber range.
ref_number_range_startStarting point of a RefNumber range.
ref_number_starts_withString which RefNumbers are to start with.
total_balance_maximumA maximum balance which returned records should have.
total_balance_minimumA minimum balance which returned records should have.
transaction_date_endLatest transaction date to search for.
transaction_date_startEarliest transaction date to search for.
special_query_typeThe special query type; for example ItemService.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

close_qb_connectionCloses a persistent connection to QuickBooks.
configSets or retrieves a configuration setting.
get_next_resultsRetrieves the next set of results (only applicable for iterative searches).
import_qbxmlImports a QBXML response aggregate.
open_qb_connectionOpens a persistent connection to QuickBooks.
resetResets all properties to their defaults.
searchSubmits a query request to QuickBooks.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

on_errorInformation about errors during data delivery.
on_ssl_server_authenticationFired after the server presents its certificate to the client.
on_ssl_statusShows the progress of the secure connection.
on_statusShows the progress of the QuickBooks connection.
on_warningFired when a warning occurs.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

AuthFlagsConnection Flags (use for QuickBooks Simple Start).
CurrencyIdFilters results by indicated currency.
CurrencyNameFilters results by indicated currency.
DateSearches by exact date.
DeletionTypeThe type of list or transaction from which a member has been deleted.
EnforceMaxLengthIndicates whether to enforce max lengths for QB Fields.
FindWithChildrenInclude children in the results of an entity Name or Id search.
GetHighestVersionHighest QBXMLVersion supported by the installed instance of QuickBooks.
GetRequestProcessorDLLVersionReturns the version of the QB Request Processor that is installed on your system.
GetSupportedVersionsReturns a list of QBXMLVersions that are supported by QuickBooks.
IsReadOnlyThis causes the QuickBooks authorization dialog to display text informing the user that its access will be read-only.
MetaDataTypeControls whether a count of results is returned or not.
ModifiedDateRangeFilterNameThe ModifiedDateRangeFilter tag name to be used in the request.
PersonalDataPrefWhether the connecting application will require access to personal data such as SSN or credit card information.
QBConnectionModeThe mode of connection to QuickBooks.
QBFileStatusThe status of the company file as it pertains to accepting connections.
QBOpenCompanyFileThe file currently open in QuickBooks.
ResultCountA count of results returned via QuickBooks' metaData attribute.
SSLAcceptServerCertThe SSL certificate being used by the Remote Connector.
SSLAcceptServerCertFileThe SSL certificate file being used by the Remote Connector.
StopOnErrorSpecifies how QuickBooks is to proceed if an error occurs in processing of the current request.
TotalBalanceThe balance which returned records should have.
TxnDateRangeFilterNameThe TxnDateRangeFilter tag name to be used in the request.
UnattendedModePrefWhether connecting while QuickBooks is closed is required or optional for the user.
WarningCodesA comma-separated list of QuickBooks warning codes that should not result in an exception.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 Python Edition - Version 20.0 [Build 7941]