When a status field is changed on a Contact, I need to redirect the user to an email editor.
I can detect the change in a 'before_save' logic hook.
I put a value in the $bean that is detected by the 'after_save' logic hook.
In the 'after_save' hook I check the status value and find the email template that goes with that status.
How do I open the email module with this template?
I'm trying this:
but that doesn't open the editor and the template isn't in the 'Compose' section when I click to get there.PHP Code:if ( $bean->lead_status_changed ) {
SugarApplication::redirect("index.php?module=Emails&email_template1=c1b5e3e8-2a69-4b5c-efa7-4da61d46eafd");
}


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks