Hello all,
I need to attach an XML document located in the file manager path “{BSE/appdata/documents}”.
I've tried everything to attach it, but I keep getting errors:
First.
I created a document type and tested sending a PDF of a report, and it does arrive in the email—so far, so good.
Then…
When I tried to attach a document to element “4,” it worked once, but the next few times there were errors.
Expression:
|——
long retval
if not isspace(#xml_file#) then
retval = dom.add.document.to.distribution(
#xml_file_path#&#xml_file#,
#xml_file#,
"text/xml")
#xml_file_path#=""
#xml_file#=""
return(true)
endif
return(false)
|———
Report variables in Report Rules:
Screenshots of success::
Failed /Error screenshots:
Final document in both distributions:
Thanks in advance if you have the solution,