Originally posted by Espire
View Post
PHP Code:
ifThen(phoneNumber && record\exists('Contact', 'phoneNumber=', $phoneNumber),
$entityPhoneNumberId = record\findOne('EntityPhoneNumber', null, null, 'entityId=', id);
record\update('EntityPhoneNumber', $entityPhoneNumberId, 'deleted', true);
);
http://https://forum.espocrm.com/forum/developer-help/developer-tutorials/92483-save-error-handlers-throw-backend-exception-handle-in-frontend-when-saving-a-record#post92483
Leave a comment: