This topic contains 3 replies, has 2 voices, and was last updated by Manuel Capinha 6 years, 8 months ago.
- Topic
Hi,
I’ve setup a custom Opportunity workflow that sends emails at certain steps.
On one of these steps I have to send an email containing information stored in the Account Entity, namely its name.My twig template is very simple:
1AccountName: {{ entity.customerAssociation.account.name }}Entity is my Opportunity Entity and I can access its attributes with no problem. But trying to access entity.customerAssociation.account always throws an error:
12Calling "getaccount" method on a "Proxies\__CG__\Oro\Bundle\SalesBundle\Entity\Customer" object is not allowed in "AccountName: {{ entity.customerAssociation.account.name|oro_html_sanitize }}" at line 6.How can I access Account attributes from inside an action that sends email with send_email_template ?
Regards,
Manuel
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.