This example shows you how to:
.credentials.inifile required by
Run the PHP
Observe the terminal output.
The number of vendor records found and each page remaining echo to the terminal:
Page 1 success! Number of vendor records found: 14. Number remaining: 12 Page 2 success! Records remaining: 10 Page 3 success! Records remaining: 8 Page 4 success! Records remaining: 6 Successfully read 4 pages
Open the generated
logs/intacct.html file in your browser and review the entries.
The file provides info and debug entries. The SDK provides a debug entry for each HTTP request/response (with the Sage Intacct endpoint).
Note that the log file was created by the logger set in the client config.
Intacct\Functions\Common\Query\QueryInterface on the
ReadByQuery object to filter the number of results. For example, add the following to the example to list only active vendors:
$where = new EqualToString(); $where->setField('STATUS'); $where->setValue('T'); $query->setQuery($where);
APBILL objects by changing the
setObjectName call, as follows:
$query->setFields() array to return the information you want.