To use SuiteScript to create a custom action to perform a transformation, use the redirect.toRecordTransform(options) method. The method takes the source transaction, opens the form of the destination transaction and fills data in the form based on the source transaction. If a field is available in both the source and destination transactions, it is transferred. However, the following fields are not automatically filled in:
Date – Today's date is displayed by default.
Due Date – Calculated from the Terms using today's date.
Accounts – If the main line account from the source transaction is not available in the target transaction, the default transaction account is used.
Status – The value of this field is not transferred.
You may also check the Suite Answers ID 44832 to help you more regarding this. Suitelets, beforeLoad user events, and synchronous afterSubmit user events are supported.
Let us know about your thoughts 😊