Codeunit post

Hi good people i created a data port that imports sales orders from TFD and its working fine,what iwant the dataport to do is after importing then post the orders. i created a boolen field,so when its true then post here is the code on the Onvalidate trigger of the request form:
IF Post = TRUE THEN
CODEUNIT.RUN(CODEUNIT::“Sales-Post (Yes/No)”,Salesheader); can you please help because its not working

My Dataitem is “Sales Line”.

thank in advance

[:’(] This is not the way to do it. OnValidate in the Request form is fired before anything have been imported. Even before the file has been opened.

Go back to basic (=manual), read it very close - then try again!