ajrey77
04/02/2025, 10:39 PMCeligo AI
04/02/2025, 10:40 PMAI generated answer (using internal Slack threads):Based on the provided Slack threads, the best script type for setting the checknumber field to null on a customer refund would be a User Event script. This script type can be used to override or modify the values of fields on a record after it has been submitted. Here is a sample code snippet that was provided in the threads. This code is used to override the transaction number field on a customer refund, but it can be modified to set the checknumber field to null:
javascript
let documentLookup = search.lookupFields({
type : search.Type.CUSTOMER_REFUND,
id : recordID,
columns : ['transactionnumber']
});
let values = {};
values.tranid = documentLookup.transactionnumber;
record.submitFields({
type : record.Type.CUSTOMER_REFUND,
id : recordID,
values : values
});
In this code, you would replace 'transactionnumber' with 'checknumber' and set values.tranid
to null.
******
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/02/2025, 10:41 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820393503
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815990031
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814738035
Celigo AI
04/02/2025, 10:41 PM