Delete Sublist Subrecord Values in a record in copy context

REQUIREMENT Need to delete or remove the landed cost subrecord values in the item sublist when a copy of the record is taken. SOLUTION We can remove the landed cost subrecord values in a record when a copy of the record is taken. Add the below code snippet in the page init entry point of… Continue reading Delete Sublist Subrecord Values in a record in copy context

Make a copy of vendor or customer records using user event script.

To make a copy of vendor or customer records, the create context type can be used instead of copy context type in the user event script. In the user event script, beforeSubmit(scriptContext) entry point is selected. It is because in the view mode of the record, “Make a copy” option is not available in the… Continue reading Make a copy of vendor or customer records using user event script.