This example shows you how to:
credentials.inifile required by
Observe the terminal output.
Information is echoed for each customer API function executed:
Created inactive customer ID 10066 Updated customer ID 10066 to active Read customer ID 10066 Deleted customer ID 10066
Open the generated
logs/intacct.log file in a text editor 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.
ReadByName function (instead of
let readByName = new IA.Functions.Common.ReadByName(); readByName.objectName = "CUSTOMER"; readByName.fields = [ "RECORDNO", "CUSTOMERID", "STATUS", ]; readByName.names = [ customerId, ]; const readByNameResponse = await client.execute(readByName); console.log("Read customer ID " + customerId + " using ReadByName");
IFunctioninterface for use with a custom object.