tuli
04/16/2025, 5:27 PMCeligo AI
04/16/2025, 5:27 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that you are trying to create a deposit record and filter the transactions on the sublist based on the transaction from/to date. However, you are unable to do so because the first 10k results on deposit do not include the rows you're interested in. In SuiteScript, you can create a deposit record and set default values for the transactions to be deposited. Here is an example:
javascript
var myDeposit = record.create({
type: record.Type.DEPOSIT,
defaultValues: {
'deposits': '818,819'
}
});
In this example, '818,819' are the IDs of the transactions to be deposited.
If you are trying to add payments to a bank deposit record, you can use the findSublistLineWithValue
method to find the line number for the payment to apply, and then use the setSublistValue
method to set the value. Here is an example:
javascript
var lineNumber = depositRecord.findSublistLineWithValue({
sublistId: 'payment',
fieldId: 'id',
value: relTransId
});
depositRecord.setSublistValue({
sublistId: 'payment',
fieldId: 'id',
line: lineNumber,
value: relTransId,
});
depositRecord.setSublistValue({
sublistId: 'payment',
fieldId: 'deposit',
line: lineNumber,
value: true,
});
In this example, relTransId
is the ID of the related transaction.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
04/16/2025, 5:27 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824250221
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821659505
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810245335
Celigo AI
04/16/2025, 5:27 PM