Sending email with attached file
Hello coresuite community,
I want to send a xml-file by using the email-button in SAP B1. It works by using "LD.addattachment()", but the pdf-file was attached to.
So I have add "Engine.CancelRender()" which avoid to add the pdf-file, which work, too.
The catch is, that we need to put the pdf-file into our archiv system. This is achieved through execute an other printdef. But when I do CancelRender, it will not run the other printdef.
Is there a way not to add the pdf file and run a second printdef for archiving by useing the mail-button?
Thank for your suggestions
a possible way could be, that you use IF/THEN for the xml -Printdef
IF Printdef = "xml-Printdef" And PrintMode = "E" THEN Engine.CancelRender
So it would do it only if this it is the right PrintDef
thank you. This helps me.
Please sign in to leave a comment.