Dataport, Conditional Logic

Another basic question: I’m writing an export dataport. Want to only write out records when certain conditions are met. But it appears that dataport is writing a record for every record in the table it reads. What is wrong here?

Hi. You should try the “OnBeforeExportRecord”-Trigger. IF NOT “Condition” THEN CurrDataport.SKIP;

Thanks Martin! I was using OnBeforeExportRecord, but was using EXIT instead of SKIP. SKIP did the trick.