I've an XMLPort I'd like to run via the Job Queue. In the Job Queue Log Entries, I'm getting the message: Client callbacks are not supported on Microsoft Dynamics NAV Server. Here is my Job Queue Entry codeunit;
SalesHeader.SETRANGE("Document Type",SalesHeader."Document Type"::Order);
SalesHeader.SETRANGE(Status,SalesHeader.Status::Released);
IF SalesHeader.COUNT > 1 THEN BEGIN
varXmlFile.CREATE(TEMPORARYPATH + 'orders.xml');
varXmlFile.CREATEOUTSTREAM(varOutputStream);
CustomerSalesOrder.SETTABLEVIEW(SalesHeader);
CustomerSalesOrder.SETDESTINATION(varOutputStream);
CustomerSalesOrder.EXPORT;
FromFile := varXmlFile.NAME;
varXmlFile.CLOSE;
FileManagement.DownloadToFile(FromFile,'\\sybvw8fap01\temp\orders.xml');
END;
Suggestions would be appreciated.
0
Comments