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
-
You can send the data of that record - not the record itself.
Birger
-
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
-
Where do I put that code? I am using the Cloud Version
-
Hi Patrick,
you can put this code on the layout element "button".
Best, Alex
-
What should go into the section?
from: myEmail,
Should I type in my email address or do I need an API or setting enabled?
-
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