0

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

null
    • Andrea
    • 6 yrs ago
    • Reported - view

    I solved it

    importFile(this, printAndSaveRecord(this, "My Print Layout"), "mypdf.pdf")

    • Andrea
    • 6 yrs ago
    • Reported - view

    Can i change  the name between " " with a test in a field? 

    E.g.

    importFile(this, printAndSaveRecord(this, "Allegato Ordine"), 'Fattura N.'.pdf")

    thanks

    • Leonid_Semik
    • 6 yrs ago
    • Reported - view

    Hi Andrea,

    ---

    importFile(this, printAndSaveRecord(this, "Allegato Ordine"), 'Fattura N.'+".pdf")

    ---

    Leo

    • Andrea
    • 6 yrs ago
    • Reported - view

    Hi Leo,

     

    it doesn’t work..

    • Leonid_Semik
    • 6 yrs ago
    • Reported - view

    Hi Andrea,

     It has to work . What is 'Fattura N.'? A text or a number?

    Leo

    • Andrea
    • 6 yrs ago
    • Reported - view

    It is text

    • Andrea
    • 6 yrs ago
    • Reported - view

    It is text

    • Leonid_Semik
    • 6 yrs ago
    • Reported - view

    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

    • Andrea
    • 6 yrs ago
    • Reported - view

    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?

    • Leonid_Semik
    • 6 yrs ago
    • Reported - view

    Hi Andrea,

    that is not possible yet

     

    Leo

    • Robert.2
    • 6 yrs ago
    • Reported - view

    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?

    • Leonid_Semik
    • 6 yrs ago
    • Reported - view

    this is a bug and will (hopefully) be fixed with the next update

    Leo

    • SMoore
    • 6 yrs ago
    • Reported - view

    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?

    • SMoore
    • 6 yrs ago
    • Reported - view

    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?

    • Mconneen
    • 6 yrs ago
    • Reported - view

    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. 

    • Choices_Software_Dean
    • 5 yrs ago
    • Reported - view

    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). 

    • Birger_H
    • 5 yrs ago
    • Reported - view

    This will not be possible to execute in the onUpdate or onCreate trigger.

    Birger

Content aside

  • 5 yrs agoLast active
  • 17Replies
  • 7227Views