Using Workflows with SuiteScript for Custom Transaction Transformations
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's transferred. However, the following fields aren't 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 isn't available in the target transaction, the default transaction account is used.
-
Status – The value of this field isn't transferred.
For more information about the redirect.toRecordTransform(options) method, see N/redirect Module.
For more information about supported transformation types, see Supported Transformation Types.