Hello,
We are able to utilize an after_save logic hook to send data fields via email successfully. This is accomplished using the following function which provides the entire main table (example: the “Contacts” table) fields to the PHP script:
Within the script we can then reference the user’s first name, by using the respective bean:Code:function send_email(&$bean, $event, $arguments) {
However, this only works for the main table fields, and does not allow us to use fields found within the custom table (example: the “Contacts_cstm) table.Code:{$bean->first_name}";
Does anyone know how to reference (use) fields from a custom table (*_cstm), when sending email messages (via logic hook)?
Thank you!


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks