BuildJSON(AccredoObject: Object [, IncludeProperties: String, ExcludeProperties: String]): Object
Returns a JSON object based on the AccredoObject, including properties in the IncludeProperties semi-colon separated string, and excluding properties in the ExcludeProperties semi-colon separated string.
BuildJSON function has these named arguments:
Parameter |
Description |
Accredo Object |
Required. An Accredo Object to use as the base of the JSON object. |
Include Properties |
Optional. A semi-colon delimited string containing properties to be included. |
Exclude Properties |
Optional. A semi-colon delimited string containing properties to be excluded. |
The following sample code creates a JSON Object based on the IN Invoice data, containing the Customer Code, Document No, Document ID, excluding the Charge and Banking sub-objects.
Sample code:
Dim datINInvoice as Object
datINInvoice = CreateObject("Accredo.INInvoiceData")
Dim JSON as Object
JSON = BuildJSON(datINInvoice, "CustomerCode;DocumentNo;DocumentID;Line", "Charge;Banking")