AnsweredAssumed Answered

Is it possible to get record id from config file

Question asked by Autchara Chaiprom on Jun 1, 2017
Latest reply on Jun 1, 2017 by Autchara Chaiprom

I tried to replace sender email from Compose Email

In compose.php when I create new compose email it will call OutboundEmailConfiguration module

I need to get record id where user create.

'fields'       => array(
                array(
                    'name'            => 'email_config',
                    'label'           => 'LBL_FROM',
                    'type'            => 'sender',
                    'span'            => 12,
                    'css_class'       => 'inherit-width',
                    'label_css_class' => 'begin-fieldgroup',
                    'endpoint'        => array(
                        'module' => 'OutboundEmailConfiguration',
                        'action' => 'list',
                    )
                ),

 

For example:

User create compose email in sub-panel from Case module.

when compose email shown template, a sender will be a default email of user but I need to set new sender email to another one base on case id.

I need to get case id and pass to OutboundEmailConfiguration.

 

 

Is it possible to pass record id from Compose to OutboundEmailConfiguration ?

 

Thanks,

M

Outcomes