[Vtigercrm-developers] get entity parent in workflow custom function?
Alan Lord
alanslists at gmail.com
Mon Jun 18 21:19:09 GMT 2018
You'll probably need to use an Event Handler, and get the "Delta" so you
can tell if it has changed or not:
> $recordId = $entityData->getId();
> $vtEntityDelta = new VTEntityDelta();
> $delta = $vtEntityDelta->getEntityDelta($moduleName, $recordId, true);
You may also need to handle if it is a _new_ record being saved for the
first time and the Primary Contact checkbox is checked...
HTH
More information about the vtigercrm-developers
mailing list