Hi there,
I have an extension that's posting sales documents through a scheduled task and I am running into a problem with the Sales-Post codeunit with regards to the Window/Dialog.
The InitProgressWindow contains the code shown below - how do I avoid the code in red raising an error when the Client Type = SOAP, API or NAS, i.e. in instances when the code is executed from a client where the Dialog is not supported without changing this code?
IF PurchHeader.Invoice THEN
Window.OPEN(
'#1#################################\\' +
PostingLinesMsg +
PostingPurchasesAndVATMsg +
PostingVendorsMsg +
PostingBalAccountMsg)
ELSE
Window.OPEN(
'#1############################\\' +
PostingLines2Msg);
Thanks,
Wiechardt