Configure the ContractManagementExt extension point to automatically copy required fields from the parent record to the contract request when it is initiated.
Antes de Iniciar
Role required: admin
Procedimento
-
Navigate to .
-
In the API Name field, enter sn_cm_core.ContractManagementExt.
-
Select the record.
-
In the Related Links section, select Create implementation.
-
On the Script Include form, fill in the fields.
-
In the Script field, update the copyDataFromBUToCMR function to configure the fields that you want to copy from the parent record to the contract request.
For example, if you want to copy the
Account and
End date fields from a parent record to contract request, you can use the following:
copyDataFromBUToCMR: function(parentRequestGr) {
return {
data: {
'account': parentRequestGr.getValue('account'),
'end_date': parentRequestGr.getValue('contract_end_date'),
}
};
},
Nota: The data type of the parent record field and the contract request field must match.
-
Select Update.
-
In the Extension Point form, select Update.
Resultado
When a contract request is initiated, the configured fields are automatically populated with the corresponding values from the associated parent record.