Attach file
Hi all,
is there a way to print and save the pdf generated in the record sheet as an attachment?
Thanks
17 replies
-
I solved it
importFile(this, printAndSaveRecord(this, "My Print Layout"), "mypdf.pdf")
-
Can i change the name between " " with a test in a field?
E.g.
importFile(this, printAndSaveRecord(this, "Allegato Ordine"), 'Fattura N.'.pdf")
thanks
-
Hi Andrea,
---
importFile(this, printAndSaveRecord(this, "Allegato Ordine"), 'Fattura N.'+".pdf")
---
Leo
-
Hi Leo,
it doesn’t work..
-
Hi Andrea,
It has to work . What is 'Fattura N.'? A text or a number?
Leo
-
It is text
-
It is text
-
Hi Andrea,
https://www.dropbox.com/s/a13p3b9w69dgoen/Andrea-2.ninox?dl=0
'Fattura N.' must not be empty. And if the file already contains a file with the same name, the file will not be created.
Leo
-
Hi Leo,
now it works (the problem was the simbol "/" in text field).
Another question: could i use a text field to change the name of a printed pdf, using printRecord?
-
Hi Andrea,
that is not possible yet
Leo
-
I have tried this on the Mac version and it works perfectly, but on the iPad, I just get the spinning wheel and nothing is saved. Anything different we need to do in order to get this to work on the iPad version?
-
this is a bug and will (hopefully) be fixed with the next update
Leo
-
This is helpful, though, what I am trying to do, is similar to one of the beta applications. When the button is clicked, it will save the PDF with a preview to a text image? What is the formula for that?
-
Update: the formula will be Image:=importFile(this, printAndSaveRecord(this, "MYVIEW"), "myRecord".pdf")
This works fine with a button, but not so much with a trigger after update. Any suggestions to fix this?
-
Any update on a fix?
My use case is posting images via the REST/API .. I will post the upload url text... and have an after update trigger that will import the file. -
S. Moore said: "This works fine with a button, but not so much with a trigger ...?" regarding importFile(this, printAndSaveRecord this, "MYVIEW"), "myRecord".pdf"
Any update on this? Looks like this was posted 13 months ago. Would really like to be able to automatically email an attachment following a new or update record trigger (ie. following a Wufoo/Zapier form submit).
-
This will not be possible to execute in the onUpdate or onCreate trigger.
Birger
Content aside
- 5 yrs agoLast active
- 17Replies
- 7227Views