Read
2 min
To read Billing Schedules, please use the parameters below.
Supported “where” Filters
Field Name | Data Type | Description |
|---|---|---|
internalId | String | Internal ID of the Cash Refund. Multiple values can be passed in a comma-separated string. |
isInactive | Boolean | Specified whether a Billing Schedule is Inactive or Active |
Example
Map<String, Object> filters = new Map<String, Object>();
filters.put('internalId', '1,2'); // provide the internal id of the Billing Schedules here
// Encode additionalFilter after constructing it with +and+ for multi-filters
// field filters and additionalFilter for where param
Map<String, Object> filterMap = new Map<String, Object>();
filterMap.put('where', new Map<String, Object>{'keyValueMap'=>filters});
Map<String, Object> requestJSONMap = new Map<String, Object>();
requestJSONMap.put('customParameters', filterMap);
String reqJSON = JSON.serialize(requestJSONMap);
Map<String, Object> reqObj = new Map<String, Object>();
reqObj.put('version', '1.0');
reqObj.put('action', 'readBillingSchedule');
reqObj.put('updateSF', true);
reqObj.put('requestJSON', reqJSON);
// Place a request to Breadwinner Global API
Map<String, Object> resp = breadwinner_ns.BreadwinnerNetSuiteAPI.call(reqObj);
System.debug(resp);