Juan Ma Concari
10/09/2025, 9:12 PMCeligo AI
10/09/2025, 9:12 PMAI generated answer (using internal Slack threads):Based on the conversations, it appears that creating a customer refund for a sales order directly using SuiteScript is not straightforward. The
record.transform method does not support transforming a credit memo into a customer refund.
However, it is possible to create a customer refund via SuiteScript, but you need to apply one or more transactions to it. This can be done using the N/record Default Values or Dynamic Mode.
Here is a general approach:
1. Create a customer refund record using record.create.
2. Use the apply sublist to apply transactions to the customer refund. This can be done using N/record Default Values or Dynamic Mode.
Please note that the Dynamic Mode might not work if the number of sublist rows exceeds the limit.
******
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
10/09/2025, 9:13 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858154297
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844665527
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840881467
Celigo AI
10/09/2025, 9:13 PM