This topic contains 1 reply, has 2 voices, and was last updated by dkrushelnytskyi@magecore.com 6 years, 6 months ago.
- Topic
Hi,
I don’t understand the syntax for event based triggers. The problem is I don’t know how to setup relations between Call and Contact. Basically, I want the trigger to fire when there a call is logged against the contact.Say I want to relate Call and Contact by phone number. So Call->getPhoneNumber() === Contact->getPrimaryPhone(). How should I write it?
123456789101112131415161718192021contact_followup:entity: Oro\Bundle\ContactBundle\Entity\Contactis_system: trueentity_attribute: contactforce_autostart: truesteps_display_ordered: falsedefaults:active: truepriority: 10applications: [ 'default' ]transitions:contacted:is_hidden: truestep_to: contactedtriggers:-entity_class: Oro\Bundle\CallBundle\Entity\Callevent: createqueued: falserelation: Contacttransition_definition: contacted_defI find this example, but I don’t understand it.
1234567triggers:-event: createentity_class: Other\Entityrelation: 'firstEntity'require: 'entity.firstEntity.id === main_entity.id'queued: true
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.