Dear expert,
I have created a codeunit for sending email to specific customers one by one.
When the codeunit is called, it
1) Find a customer that need the email.
2) create and save a excel file on a folder.
3) Send email to customer with the excel file. (using codeunit 400 SMTP mail).
4) Next customer.
I find some string problem when sending email.
Basically, when the codeunit is processing, the mouse point will change to the loading icon and user can't click anything on NAV.
However, when the Send Email function is called the mouse point change back to arrow for a few seconds.
If i click something on NAV during this few seconds like open and close from, the codeunit will stop. The rest email won't send.
If i close NAV and open again, the codeunit seems continue to run...... :-k
I try to add a dialog box, but i can still click something on NAV when sending email.
Why the codeunit will stop process?
Is there any method to prevent user interaction before the process is end?
Many Thanks.
Comments
Why Don't you use NAS for running this codeunit?
By using NAS no user interaction is required and the process can also be automated.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page