After exporting information to an external file via a dataport I want to store the last entry id number. This stored value will be recalled when the same dataport is executed a second time to filter out records already exported. A detail explanation of how to accomplish this will be much appreciated.
Thanks :P
0
Comments
I can give you code for it, if you have developer access to C/AL.
Create a new boolean field on the table that you are exporting and then after each record that has been exported, update this field.
This means that next time you run the dataport you can pre-filter on the updated field being set to false.
i.e.
in the C/al of the dataport, look for the following trigger:
OnAfterExportRecord()
Once you have this then use code similar to this:
should be as easy as that
Thanks.
Not strictly true. Give the dataport permission to modify the "Check Legder Entry" table. Only problem is that you need a developer licence to actually add permission to the dataport for the table you mentioned.
However, this is only a 30 second modification and that if you speak to your NSC, then i'm sure that they can do this minor task for you ??