Zoran R-DATAGRAM
02/14/2024, 11:46 AMerictgrubaugh
02/14/2024, 3:19 PMSimonC
02/14/2024, 4:25 PMerictgrubaugh
02/14/2024, 4:29 PMZoran R-DATAGRAM
02/14/2024, 5:58 PMerictgrubaugh
02/14/2024, 5:59 PMZoran R-DATAGRAM
02/14/2024, 6:08 PM// iterate through pfaTransactions and initiate workflow
pfaTransactions.forEach(transaction => {
// code logic for each transaction
const parentPayment = transaction.getValue({name:'custrecord_2663_parent_payment'});
log.debug({
title : 'parentPayment',
details : parentPayment
});
const options = {
// The internal ID of the record
recordId: parentPayment,
// The type of the record
recordType: 'VENDORPAYMENT',
// The internal ID of the workflow
workflowId: 'customworkflow_levi9_wf_payment_email',
};
const workflowId = workflow.initiate(options);
log.debug("workflowId: ", workflowId);
});
benjamin
02/17/2024, 12:07 PMSimonC
02/17/2024, 12:12 PMerictgrubaugh
02/17/2024, 8:02 PM