0

Can I attach invoice to email and send via a trigger from the email icon

I have created an invoce sheet and want to be able to emailthe invoice directly to the customer via the email icon.

can this be scripted to act as a trigger in the invoice sheet?

2 replies

null
    • Choices_Software_Dean
    • 4 yrs ago
    • Reported - view

    Attach script to a "Email Invoice" button:

    let myinvoice := importFile(this, printAndSaveRecord(this, "Name of invoice layout"), "mypdf.pdf");
    sendEmail({
    from: text(userEmail()),
    to: text('IssueEmailto'),
    subject: "Hello World!",
    text: "Some text",
    html: "<h1>Some Text</h1><i>With Markup</i>",
    attachments :myinvoice
    })

    • BAJABI SL
    • jjrecort
    • 3 yrs ago
    • Reported - view

    Thanks Dean,

    Very useful! I'm just starting with Ninox! is great.

    I have been able to customize the Subject adding the order number,  but how do I incorporate the fields on the HTML part?

    What is the sintax?

    Thanks!

Content aside

  • 3 yrs agoLast active
  • 2Replies
  • 1166Views