Can I send a email with the attached file from a specific record
Hello
I used the function importFile (see example code) and that works well!
In a other step I want to send emails to the customer with the attached file of a specific record (see previous action).
Is that possible - send also the attachement with the email.
The email function works well!
Greetings
Arjan G
++++ example code ++
Bijlagen := null;
let myLayout := "ContractStandaard2018";
let myNumber := cnt(files(this)) + 1;
let myName := ContractNr + " - " + Achternaam + " " + format(date(today()), "YYYY-MM-DD") + ".pdf";
importFile(this, printAndSaveRecord(this, myLayout), myName);
Bijlagen := file(this, myName)
5 replies
-
Yes, this can be done:
–––
Bijlagen := null;
let myLayout := "ContractStandaard2018";
let myNumber := cnt(files(this)) + 1;
let myName := ContractNr + " - " + Achternaam + " " + format(date(today()), "YYYY-MM-DD") + ".pdf";
importFile(this, printAndSaveRecord(this, myLayout), myName);
Bijlagen := file(this, myName);
let myHtml := "<h1>This is a test</h1>"
sendEmail({
from: userEmail(user()),
to: text('Email field'),
subject: "Ninox",
text: text(myHtml),
html: myHtml,
attachments: Bijlagen
})
–––Birger
-
Thank you Birger,
It works well!
Another email (input) question:
- can I send an email (with attachement) to Ninox and create a new record, save the email context and connect the attachement to this new created record?
Greetz Arjan G
-
Shound be possible - using APi calls - so its not out of the box - yet :-(
Birger
-
There are several users get such common trouble as sending an email with attaching some particular file from a specific record from any Mac OS based platform. They take help from http://applesupportnumber.net/apple-customer-support/ that will instruct a fruitful suggestion for resolving all these issues easily.
-
[url="https://applesupportnumber.net/apple-customer-support/"]Apple Customer Support[/url]
Content aside
- 6 yrs agoLast active
- 5Replies
- 4124Views