0

Email contents of Record without creating PDF

Is there a way to send an email with the contents of a record?  I'm building a service tracking application and would like to be able to email the record to my technicians without them having to open an attachment to view the record.

6 replies

null
    • Birger_H
    • 5 yrs ago
    • Reported - view

    You can send the data of that record - not the record itself.

    Birger

    • Jorg
    • 5 yrs ago
    • Reported - view

    Hi Patrick, 

    Of course there is the possibility to do that. If you are using a Ninox Cloud database you can do that with the following function:

     

    let myText := 'Task field of the record';
    let myHtml := "<b>'Task field of the record'</b>";
    sendEmail({
    from: myEmail,
    to: text(Client.Email),
    bcc: "myAddress@mail.de",
    subject: "Ninox - Task " + 'Invoice-Nr.' + " from " + 'Rechnungs-Datum',
    text: text(myText),
    html: myText
    });

     

    Best regards, Jörg

    • patrick
    • 5 yrs ago
    • Reported - view

    Where do I put that code?  I am using the Cloud Version

    • Alexander_Koenig
    • 5 yrs ago
    • Reported - view

    Hi Patrick,

    you can put this code on the layout element "button".

    Best, Alex

    • patrick
    • 5 yrs ago
    • Reported - view

    What should go into the section?

     

    from: myEmail,

     

    Should I type in my email address or do I need an API or setting enabled?

    • Jorg
    • 5 yrs ago
    • Reported - view

    Hi Patrik,

    You can add a line where you set this "myEmail" as the e-mail address of the current user:

     

    let myEmail := userEmail();
    let myText := 'Task field of the record';
    let myHtml := "<b>'Task field of the record'</b>";
    sendEmail({
    from: myEmail,
    to: text(Client.Email),
    bcc: "myAddress@mail.de",
    subject: "Ninox - Task " + 'Invoice-Nr.' + " from " + 'Rechnungs-Datum',
    text: text(myText),
    html: myText
    }); 

    Kind regards, Jörg

Content aside

  • 5 yrs agoLast active
  • 6Replies
  • 2063Views