Menu
SuiteCRM dedicated support by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Access the contact role in email template

Access the contact role in email template 5 months 4 days ago #66127

  • Chrisjow
  • Chrisjow's Avatar
  • Offline
  • Junior Member
  • Posts: 29
  • Karma: 0
Hi,

When an opportunity changes stage, I send an email to the contacts linked to this opportunity (workflow). I need to put in this email all the contacts names and roles. How can I access this information from the email template module ?

I only found how to access to one contact (don't why this one, as there is a many-to-many relationship between opportunity and contact).

Thanks,
Chris
The administrator has disabled public write access.

Access the contact role in email template 5 months 4 days ago #66146

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
Workflows are only able to do simple things, and traversing many-to-many relationships with a loop isn't that simple, if you think of it. One person wants it done one way, the other person wants it done in another, so you get a gigantic UI which nobody understands.

I'd say your requirement is much better served with a logic hook, there you can use the full power of PHP to customize.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
Time to create page: 0.047 seconds
Powered by Kunena Forum