Condition in the workflow
Collapse
X
-
Hi,
Needs coding. You need to create a formula function. See https://www.espocrm.com/documentatio...on-in-formula/ -
Thanks for the answer, but I think it will be easier for me to implement this using the "Service Action".Hi,
Needs coding. You need to create a formula function. See https://www.espocrm.com/documentatio...on-in-formula/
Tell me please how to get Activities related to Opportunity?
Comment
-
I tried to do this, but my code does not work
I tried to find all the entity with a certain variable "Parent"PHP Code:$dostavki = $this->getEntityManager()->getEntity('Dostavki', $entity->get('Id')); $opportunity = $this->getEntityManager()->getEntity($entity->get('parentType'), $entity->get('parentId')); $parentType = $entity->get('parentType'); $parentName = $this->get('parentName'); $parentId = $entity->get('parentId');
Help me pleasePHP Code:$Dostavkilist = $entityManager->getRepository('Dostavki')->where(array( 'parentName' => $parentName, 'parentId' => $parentId ))->find();Comment

Comment