Good afternoon !
Guys, I need some help, I have a Lookup Data Table flow.
flow that queries the orders and returns the invoice number, however I want it to count and notify the order numbers for each invoice.
Would you be so kind as to include a sample data set so that we may be in a better position to assist you?
You just wish to retrieve a count of invoices and display then in a message box, correct?
Hello, the query data table flow, use this query worksheet (reading interval), it returns the invoice number in the message box, idea that it returns the amount of repeated invoice.
this is idea
I can bring the invoice number but I can’t count these repeated numbers where I’m stuck
(From d in YourDataTableVar.AsEnumerable
Group d by k=d("invoice").toString.Trim into grp=Group
Select t = Tuple.Create(k, grp.Count)).toDictionary(Function (x) x.Item1, Function (x) x.Item2)
we cannot refer to all the details, but it seems that the variable representing the datatable with the data from excel after read range is not used when within the LINQ ectractSaida2 is used.
Ensure that the right datatable variable is used and adopt the LINQ
(From d In dtData.AsEnumerable
Group d By k=d(0).toString.Trim Into grp=Group
Select t = Tuple.Create(k, grp.Count)).toDictionary(Function (x) x.Item1, Function (x) x.Item2)