please try the following logic: Read Range of the two excel files, save output as 2 separate variables
Make For Each row1 in FirstExcelOutput activity (rows from first output), nested inside another For Each row2 in SecondExcelOutput (rows from second output)
Inside second For Each put If activity with condition based on column naming:
e.g.: row1.Column(“NO”).toString.Trim.equals(row2.Column(“Number”).toString.Trim And row1.Column(“Quantity”).toString.Trim.equals(row2.Column(“Quantity Received”).toString.Trim)
This condition will try to match two mentioned values from both excel files.
As True set further actions or some boolean, or Break activity to stop the loop. As False add part with Sending email.
If columns do not change their position in excel, you can refer to them like: row1(2).toString, where “2” refers to the index of the column in file.
@palaniyappan 1) i Want to Read the excel.
2) Then match the values based on above mentioned condition
3) If condition is true i shld send only once mail like all values are matching
4) else values are not matching
This is my attached workflow can its same like what you mentioned
once condition is getting true then im sending mail, later thats going to else condtion too and sending it has error . Match.xaml (12.0 KB)
used two for each row loop with if condition like this buddy row(1).ToString.Trim.Equals(row_2(0).ToString.trim) and row(4).ToString.Trim.Equals(row_2(2).ToString.Trim)
Your workflow is same like what i created, its give message like values are matched twice and values along with that its Values are not matchedd also printing… i want workflow like once values are matched it shld not go to else part again.
Buddy there is no need of writeline in else part,leave it blank buddy so that it would iterate though but we dont need that as a information…Cheers @Akshay_14
[quote=“Akshay_14, post:13, topic:118656”]
Values are same but iam not getting why its going to else part again… Please Give me logic like Once its true it shld not go to else part…@Palaniyappan and @olgu [/quote]
Values are same but iam not getting why its going to else part again… Please Give me logic like Once its true it shld not go to else part…@Palaniyappan@olgu
and make use of sen doutllook mail activity out here
the logic is
the mail will be send only after all the rows in inner foreach row loop gets over and as we have added the out_bool of boolean type at last of each iteration, based on that condition we can send mail with a if condition buddy
this worked
Kindly try this and let know buddy
Cheers @Akshay_14