Hi
In Microsoft Dynamics NAV 2017, I want to run my XMLPort using a Codeunit and save the resulting file in a folder on my desktop. I am running the Codeunit through the Job Queue.
However, I encountered a problem when attempting to include the date and time in the file name. While I successfully implemented the date and time addition, I received an error indicating that the file path is too long.
Additionally, I would like to configure the file path dynamically using the Human Resource Setup .
Here is the code I’m currently using: