I am invoice posting multiple sales order (not in batch). The system creates as many EML fields for the first invoice so many orders I am posting. Instead of one file for each invoice.
I have print destination set to Email with an option Open email before sending Yes. For the subject and attachment name I have user defined variable set as @Test@. The variable is defined as SalesInvoiceLocHeaderExt/@InvoiceId.
It is interesting that for the Print archive this variable works well.
We tried to reproduce the issue but so far we were not able to do so. Can you also share the information about the versions of D365FO and Docentric AX?
So far, we haven’t been able to reproduce the issue on our side. Could you try the same process using a different user or browser, just to rule out any environment-specific factors?
Can you also share some more info with us:
Do the emails have the same content and attachments, or are the emails themselves correct and only the filenames (subjects) incorrect?
Are there any customizations in place that could affect how the subject or filenames are generated?
Unfortunatelly the label SalesInvoiceLocalizationLines[1]/@InvoiceId does not provide any result (Preview result: INVALID_EXPRESSION (No results.))
The placeholder I am using works on the report where it represents the invoice number and also works properly for the print archive. The Print archive is created correctly unlike the email.
The problem is likely the email. Because also the body is same.
It is interesting, that user defined placeholder was inserted into the body (still identical value in the both emails), but standard report placeholder was not loaded - I have used @InvoiceId@.
I have tried to use the email template instead of the email body specification in the print management, but there is no difference.
Could you contact support to schedule a meeting to see exactly what is happening in your environment, as I’m not sure what could be causing this based on the information here?