Carl Jenkins
06/11/2019, 12:12 PMbattk
06/11/2019, 12:23 PMbattk
06/11/2019, 12:23 PMCarl Jenkins
06/11/2019, 12:32 PMvar filters = [
search.createFilter({
name: 'type',
operator: <http://search.Operator.IS|search.Operator.IS>,
values: 'VendPymt'
}),
search.createFilter({
name: 'internalid',
operator: <http://search.Operator.IS|search.Operator.IS>,
values: 10617
}),
search.createFilter({
name: 'mainline',
operator: <http://search.Operator.IS|search.Operator.IS>,
values: "F"
})
];battk
06/11/2019, 12:35 PMbattk
06/11/2019, 12:36 PMCarl Jenkins
06/11/2019, 12:36 PMvar billSearch = search.create({
type: search.Type.VENDOR_PAYMENT,
columns: [{
name: 'entity',
},{
name: 'tranid'
},{
name: 'amount'
},{
name: "appliedtolinkamount",
},{
name: 'trandate'
},{
name: "custbody_csiinvoiceid",
join: "appliedToTransaction",
label: "csiInvoiceId"
},{
name: "trandate",
join: "appliedToTransaction",
label: "billDate"
},{
name: "termsdiscountamount",
join: "appliedToTransaction"
},{
name: "termsdiscountdate",
join: "appliedToTransaction"
},{
name: 'appliedtotransaction'
}],
filters: filters
});Carl Jenkins
06/11/2019, 12:38 PMbattk
06/11/2019, 12:39 PMbattk
06/11/2019, 12:39 PMCarl Jenkins
06/11/2019, 12:40 PMbattk
06/11/2019, 12:43 PMCarl Jenkins
06/11/2019, 12:45 PMbattk
06/11/2019, 12:46 PMCarl Jenkins
06/11/2019, 12:50 PMCarl Jenkins
06/11/2019, 12:53 PMbattk
06/11/2019, 12:55 PMbattk
06/11/2019, 12:55 PMThe callback function takes a search.Result object as an input parameter and returns a boolean which can be used to stop the iteration with a value of false, or continue the iteration with a value of true.battk
06/11/2019, 12:56 PMCarl Jenkins
06/11/2019, 12:56 PMCarl Jenkins
06/11/2019, 12:57 PMbattk
06/11/2019, 12:59 PMCarl Jenkins
06/11/2019, 1:00 PMCarl Jenkins
06/11/2019, 1:02 PMbattk
06/11/2019, 1:04 PMCarl Jenkins
06/11/2019, 1:06 PM