How to Create an Email-Template for Approve and Reject a record

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
        /* General styles */
        body {
            font-family: Arial, sans-serif;
            color: #333;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }


        .container {
            max-width: 600px;
            margin: 20px auto;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            padding: 20px;
            text-align: left;
        }


        .content p {
            font-size: 16px;
            line-height: 1.5;
            margin: 0 0 20px;
        }


        .highlight {
            font-weight: bold;
        }


       


        /* Footer */
        .footer {
            padding: 10px 20px;
            background-color: #f9f9f9;
            text-align: left;
            font-size: 14px;
            border-top: 1px solid #ddd;
        }


        .footer a {
            color: #00539C;
            text-decoration: none;
        }


        .footer a:hover {
            text-decoration: underline;
        }


        .footer ul {
            padding-left: 20px;
            margin: 0;
            list-style: disc;
        }


        .footer ul li {
            margin-bottom: 5px;
        }


        /* Responsive styles */
        @media screen and (max-width: 450px) and (min-width: 330px) {
            #itemid, #totalid {
                table-layout: fixed;
            }
        }
    </style>
</head>
<body style="font-family: Arial, sans-serif;color: #333;margin: 0;padding: 0; background-color: #f5f5f5;">
<div><!-- Content --> <img style="width: 100%; max-width: 1000px; height: auto;" src="https://617671-sb1.app.netsuite.com/core/media/media.nl?id=16661&amp;c=617671_SB1&amp;h=Fj-ThuEG0xpirVrtvGU7ed_aJQZo3HC6psa64SEWdfQSq0Hx" width="1000" border="0" />
<div><#assign date="#date">
<p style="font-size: 16px; line-height: 1.5; margin: 0 0 20px;">Hi ${transaction.nextapprover.firstName},</p>
<p style="font-size: 16px; line-height: 1.5; margin: 0 0 20px;">Purchase Order ${transaction.tranId} is waiting for your approval. Please review the attached document file.</p>
<p style="font-size: 16px; line-height: 1.5; margin: 0 0 20px;">To approve or reject this document through this email, please click:</p>
<!-- Buttons --> <br /><strong>
            <a style="font-family: Arial, sans-serif; font-size: 16px; color: #333; font-weight: bold; text-decoration: none; background-color: #f8a429; text-align: center; padding: 10px 80px; border-radius: 5px; border: 1px solid #ddd; margin: 0 10px;"
   href="https://8183733-sb1.extforms.netsuite.com/app/site/hosting/scriptlet.nl?script=1544&deploy=1&compid=8183733_SB1&ns-at=AAEJ7tMQKHJvr_gjq-PzrtbjrqkLKKskWcimK7L3GV8TxBDipMk&soid=${transaction.id}&action=approve&level=0">Approve</a>


<a style="font-family: Arial, sans-serif; font-size: 16px; color: #333; font-weight: bold; text-decoration: none; background-color: #f8a429; text-align: center; padding: 10px 80px; border-radius: 5px; border: 1px solid #ddd; margin: 0 10px;"
   href="https://8183733-sb1.extforms.netsuite.com/app/site/hosting/scriptlet.nl?script=1544&deploy=1&compid=8183733_SB1&ns-at=AAEJ7tMQKHJvr_gjq-PzrtbjrqkLKKskWcimK7L3GV8TxBDipMk&soid=${transaction.id}&action=reject&level=0">Reject</a>      
<p>Notes:</p>
<ul>
<li>To open the record in NetSuite, click the View Document link below.</li>
</ul>
<br /><a style="color: black;" href="https://8183733-sb1.app.netsuite.com/app/accounting/transactions/purchord.nl?id=${transaction.id}">View Document</a></div>
<br /><br />Kind Regards,<br /><strong>${transaction.subsidiary}</strong><br /><img src="https://8183733.secure.netsuite.com/core/media/media.nl?id=11&amp;c=8183733&amp;h=vfyPBdNlbfXmhl37svv_mGpEVvBD7RH4zav93zhZo810ZbKA" alt="" /></div>
</body>
</html>

Leave a comment

Your email address will not be published. Required fields are marked *