Hi I have 2 excel files one is input Excel file and the other is Output excel file.
Note:RecordID and WFID both are same
In Input and Output Excel file i have Record ID column which is common and in output Excel file i have one more column with PO Numbers
First i need to Check whether the Input Record ID present in Output file and Next PO Number Column Value for that record ID in the same output file is Empty
Then we need to consider that record if PO Number coulmn is having some value we need to discard.
Read both input and output Excel files and store them in separate DataTable variables
then Use the Join Data Table activity to join dtInput and dtOutput on the “Record ID” column. Set the JoinType property to “Left” to keep only the records from the left table (dtInput) that have matching records in the right table (dtOutput). This will give you the records from the input file that are present in the output file.
After Joining Add a Filter Data Table activity to filter the joined result and keep only the records where the PO Number column in dtOutput is empty. This will ensure that you consider only those records where the PO Number is not already filled in the output file.
The resulting DataTable will contain the desired records. You can use this DataTable for further processing or write it to a new output Excel file if needed.