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