Tried that, as per the following:
Salesperson/Purchaser - OnAfterImportRecord()
“Salesperson/Purchaser”.“Imported Date” := TODAY;
MODIFY;
Error message:
---------------------------
Microsoft Dynamics NAV Classic
---------------------------
Salesperson/Purchaser Code ‘EUN0681’ does not exist.
I have tried several variations but the only one that works is to use an integer as per the following example:
Integer - OnAfterImportRecord()
IF ImportText[1] = ‘Account Type’ THEN CurrDataport.SKIP; //skip the 1st record if it has the column header
CLEAR(Amt);
IF ImportText[5] <> ‘’ THEN
EVALUATE(Amt,ImportText[5]);
IF Amt <> 0 THEN CreateGenJnlLine(Amt);
CurrDataport.SKIP; //Finished with Lines
Integer - OnPostDataItem()
CreateGenJnlLine(Amt : Decimal)
LineNo += 1000;
GenJnlLine.INIT;
GenJnlLine.“Journal Template Name” := ‘GENERAL’;
GenJnlLine.“Journal Batch Name” := ‘TBLOAD’;
etc.
The problem with this is the time to set up the ImportText[1] to [99] fields.
Still, it looks like this is the only way?