E-Invoicing. Need help with generating XML attachment in BPM Formula

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Laimonas
    Senior Member
    • May 2021
    • 203

    E-Invoicing. Need help with generating XML attachment in BPM Formula

    Hi everyone,


    I’m having trouble generating an XML attachment (for E-Invoicing purposes) and sending an email to the client using a BPM formula.
    (No problem sending XML and PDF manually from the Invoice record by pressing the button "Send in Email").

    To generate a PDF, I use: $pdfAttachmentId = ext\pdf\generate(ENTITY_TYPE, ENTITY_ID, TEMPLATE_ID, [FILENAME])

    But how can I generate an XML file in a BPM formula? Is there a specific formula for this?

    If I would like to use the "Send in Email" BPM Service Action - it only includes a PDF template, but I don’t see an option for an XML template. Is there a way to include XML as well?

    Thanks in advance for your help!
    Attached Files
  • yuri
    Member
    • Mar 2014
    • 8637

    #2
    Hi,

    It was not supported in the service action.

    Please try the new v2.6.4 version. It should work there. You need to set the default e-invoice format in the settings. Please let me know if it still does not work for you.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...