[dyad] wrote 1 file(s)

This commit is contained in:
[dyad] 2025-09-12 10:53:57 +02:00
parent 10b03da677
commit 2763a357f0

View file

@ -9,8 +9,8 @@ onRecordAfterCreateSuccess((e) => {
const record = e.record;
// Define the recipient email for approval (replace with actual approver email)
const approverEmail = "approver@example.com";
// Read approver email from environment variable, fallback to placeholder if not set
const approverEmail = $os.getenv("APPROVER_EMAIL") || "approver@example.com";
// Prepare order details for email
const supplierName = record.get("supplierName");