ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 1 reply, has 2 voices, and was last updated by  dkrushelnytskyi@magecore.com 6 days, 9 hours ago.

  • Creator
    Topic
  • #39206

    zhex900
    Participant

    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?

    I find this example, but I don’t understand it.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #39212

    Hi zhex900,

    Documentation about triggers for workflow

    This example means that workflow transition will be executed for object which exist in firstEntity (Relation between Other\Entity and Entity object of the workflow) when Other\Entity will be created and condition entity.firstEntity.id equal main_entity.id (Entity object of the workflow) will be successful.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.