I am trying to send a custom document page as pdf mail attachment but I get this message "file does not exist ".
When I check the path to the temp folder the file exist.
I am using 365 BC On-premise (spring)
TempEmailItem refers to Nav's Table 9500 Email Item
Customer.TESTFIELD("E-Mail");
WITH TempEmailItem DO BEGIN
"Send to" := Customer."E-Mail";
Subject := 'Sales Statistics';
GenerateEmailBody(Customer,EmailBody);
Body := EmailBody.Blob;
"Attachment File Path" := GenerateEmailAttachment(Customer."No.");
"Attachment Name" := 'Open Customer Entries.pdf';
"Plaintext Formatted" := FALSE;
EXIT(Send(FALSE));
END;