OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions Workflow event based triggers

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #25485

    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
  • #25486

    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)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top