I have a file path that attaches a PDF to an email. NAV does not retrieve the file from the server when I save the file in this folder name - and I suspect it is because of the
spaces in the name Old Storage Drive. Because the client computers are already mapped to this location for other reasons, it is not a good idea to change the file folder name.
How can I alter this so that the
spaces in "Old Storage Drive" is not a problem?
Mail.NewMessage(emailtoaddr,emailccaddr,STRSUBSTNO('Invoice No. %1',SalesInvHeader."No."),
'Attached please find invoice ' + SalesInvHeader."No."
+'.','\\'+Hostname+'\F$\Old Storage Drive\InvoicePrinter\Invoices\'+STRSUBSTNO
('Invoice No. %1',SalesInvHeader."No.")+'.pdf',TRUE)
Comments
I believe you can replace the spaces with %20.
Object Manager
This does not seem to work
As attachment location the spaces would not be the problem I think.
I just tested it and it works.
Even with a network path.
Object Manager
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.