Boris Yasen
06/20/2023, 3:11 PMNathan L
06/20/2023, 3:13 PMfunction afterSubmit(context) {
if (context.type === context.UserEventType.EDIT) {
var newRecord = context.newRecord;
var oldRecord = context.oldRecord;
var newSubrecord = newRecord.getSubrecord({
fieldId: 'addresssubrecord'
});
var oldSubrecord = oldRecord.getSubrecord({
fieldId: 'addresssubrecord'
});
var newAddress = newSubrecord.getValue('address');
var oldAddress = oldSubrecord.getValue('address');
// Check if the address has changed
if (newAddress !== oldAddress) {
// do stuff
}
}
}
Nathan L
06/20/2023, 3:14 PMBoris Yasen
06/20/2023, 3:23 PMShawn Talbert
06/20/2023, 3:54 PMBoris Yasen
06/20/2023, 4:30 PMNickSuite
06/20/2023, 5:11 PMNickSuite
06/20/2023, 5:12 PMbattk
06/20/2023, 5:34 PM