Announcement

Collapse
No announcement yet.

Proper usage of ext\pdf\generate in Formula

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Proper usage of ext\pdf\generate in Formula

    I am currently trying to generate a pdf for a custom entity via a formula. Regardless of what I am doing, the following call always returns neither an id nor null, but always an empty string. There is also no error visible in espocrm's log file, nor a new entry in the attachment db table is created.

    ext\pdf\generate('Invoice', entity\attribute('id'), '5f43c701c915c7fec', 'test.pdf')

    When using the template with the given id on that entity manually, it works as intended.

    I am using EspoCRM 6.1.1. Any hints on why this isn't working? Is there any way to "debug" a formula?


  • #2
    Hi,
    I am curious what a result are you expecting?
    Is this just a single formula line, or you want to send this PDF file within an email?

    Comment


    • #3
      I am expecting to receive at least an attachment id. Either to send it via email, or which would be preferable, to store the attachment in a Document entity.

      Comment

      Working...
      X