[dyad] wrote 1 file(s)
This commit is contained in:
parent
10b03da677
commit
2763a357f0
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue