Ah now I understand it!
It is working. Thank you!
if (entity\isAttributeChanged('contractId') && usageType == 'Owner occupancy') {
$customerId = record\attribute('Contract', contractId, 'customerId');
record\update('Customer', $customerId, 'changOfAddress', true);
}
if (entity\isAttributeChanged('contractId') && usageType == 'Owner occupancy') {
$customerId = record\attribute('Contract', contractId, 'customerId');
record\update('Customer', $customerId, 'changOfAddress', true);
}
Leave a comment: