电子邮件模板中案例的自定义链接

问题描述

我一直在尝试以文本形式创建包含案例动态链接的电子邮件模板。此电子邮件模板的目标是用于在创建案例时触发电子邮件警报的工作流,以便接收电子邮件警报的收件人只需单击电子邮件模板呈现的链接即可转到案例已创建。

这在 Salesforce Lightning 中是否可行?

我的visualforce代码(作为初学者):

<messaging:emailTemplate subject="New Repair Job" recipientType="{!relatedTo.user}" relatedToType="Case">
<messaging:plainTextEmailBody >
    <html>
        <body>
        <p>Hi {!user.FirstName},</p>
        <p>You have a new repair job.</p>
        <table >
            <apex:repeat var="cx" value="{!relatedTo.Cases}">
            <td>
                <a href = 
                    "https://independentliving.salesforce.com/{!cx.id}">{!Cases.CaseNumber}
                </a>
            </td>
            <tr>
                <th>Case Number: {!Cases.CaseNumber}</th>
                <th>Origin: {!Cases.Origin}</th>
                <th>Status: {!Cases.Status}</th>
            </tr>
            </apex:repeat>
        </table>
        </body>
    </html>
</messaging:plainTextEmailBody>
</messaging:emailTemplate>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)