Email - multiple invoice posting, wrong user defined placeholder variable

Hi,

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.

Hi Thomas,

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?

Thank you!

Albin

Hi Albin,

D365: 10.0.44 (10.0.2263.74), Installed platform version : Update68 (7.0.7606.108)
Docentric: 3.4.9.2

Thanks

Hi Tomas,

Thank you for sent information about versions.

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?

Kind regards,
Dragana

Hi @Tomas_Winterstadion,

I assume you have done some customizations to show the SalesInvoiceLocHeaderExt/@InvoiceId value.

I see you’re using SalesInvoice.ReportCZ, so it might be worth checking if the following placeholder value works for you:

SalesInvoiceLocalizationLines[1]/@InvoiceId

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.

Same result with multiple users.

I will check it with developer what may be wrong.

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.

Hi @Tomas_Winterstadion,

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?

I will double check it with developer and I will get back to you or contact the support.

1 Like

The issue was caused by our customization. We can close this topic.

1 Like

Happy to hear that this has been resolved. Thanks for letting us know!