Hi -
I have a batch class which reads the info log messages from BatchHistoryTable and inserts them into a Custom Regular table using insert(). The job works fine. I just need to put a validation that the records don't repeat depending on these three fields.
Document #
Employee ID
Assignment Date
I want to have a check in my batch class which reads the data in a Custom table before inserting.
If Document#, EmployeeID and Assignment are not found in a table for a single record then insert() or else no. In other works these three fields should always be unique for every row in a table.
How can I achieve this functionality thourgh X++ ? or f there is any other way of doing this ?
Please let me know if my question is not properly asked and I will do my best to elaborate further.
Thanks
*This post is locked for comments
I have the same question (0)