Filling a No. Series key value on an import

BokkBokk Member Posts: 138
edited 2003-03-07 in Navision Attain
I am trying to import sales invoice info from a flat file into the Sales Header table (and Sales Line table). The key (No. Series) value is not part of the file so I am attempting to generate it in the OnAfterImportRecord trigger. I am having trouble referencing the "No." field. It is not part of the dataport reccord and if I declare a global variable, the dataport fields are not included. (I tried to call the OnInsert trigger of Sales Header table from the dataport without success - is this even possible?) Any suggestions would be appreciated!
SGM

Comments

  • TrondTrond Member Posts: 3
    it should be enough to set "No." = '' and then the insert trigger should take care of it.
  • BokkBokk Member Posts: 138
    I tried setting the the "No." field to blank and having the INSERT code on the table take care of it, but it didn't. I was able to do it, however, by calling the NoSeriesMgt codeunit and assigning the return value to the "No." field. Thanks
    SGM
Sign In or Register to comment.