OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions System parameters in workflow

This topic contains 1 reply, has 1 voice, and was last updated by  mirche 5 years, 4 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
  • #25035

    mirche
    Participant

    Hi,

    Is there a way to use system config parameters (i.e. system email for sending email) in workflows?

    Thanks

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

    mirche
    Participant

    I have found a solution, so if someone else is struggling with this, here it comes:
    workflows:

    attributes:
    email_from_entity:
    label: ‘Email sender’
    type: entity
    options:
    class: Oro\Bundle\ConfigBundle\Entity\ConfigValue

    transition_definitions:

    my_transition_definition:
    post_actions:
    – @find_entity:
    parameters:
    class: Oro\Bundle\ConfigBundle\Entity\ConfigValue
    attribute: $email_from_entity
    where:
    name: email_notification_sender_email
    – @send_email_template:
    from: $email_from_entity.value

Viewing 1 replies (of 1 total)

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

You will be redirected to [title]. Would you like to continue?

Yes No