您可以编辑自定义记录类型以选中“启用邮件合并”复选框,那么您应该具有此功能。
如果您希望通过主按钮组中的按钮使用该功能,我认为仅使用工作流程是不可能的;但是,您可以通过脚本来实现这一点。为此,请创建一个具有加载前功能的用户事件脚本以将按钮添加到表单,并创建一个可以在单击按钮时调用的客户端脚本。上传并部署到您希望显示电子邮件按钮的自定义记录类型。对于这个答案,我假设您至少具备创建脚本记录的基本知识 - 如果您需要更多信息,请告诉我。
用户事件脚本:
function emailButton(type, form)
{
//add a custom button on the form
//specify the function name of the Client script created in Step 2
form.addButton('custpage_Add', 'Start Email','startEmail();');
//set the internal id of the Client script created in Step 2
form.setScript('customscript_ppcs_start_email_client');
}
客户端脚本:
function startEmail() {
new_message([['transaction',document.forms['main_form'].elements['id'].value],['entity',document.forms['main_form'].elements['companyid'].value],['template',['66']]], 'EMAIL');
}
您可以修改使用的模板,将“66”替换为所需模板的内部 ID,也可以将其删除。您也可以删除“实体”,因为您不希望设置收件人。下面是一个同时删除的示例:
function startEmail() {
new_message([['transaction',document.forms['main_form'].elements['id'].value]], 'EMAIL');
}