We are trying to get the filtered results from excel sheet in to datatable. Doing a ‘read range’ after filtering doesn’t seem to work as it takes the entire table.
You can First do “Read Range” and then filter the data from datatable(generated by read range activity).
This link will help you on this:
Let me know, if you have any doubts on this.
We need to do this filter on a loop and keep sending the filtered result to mail output. We have done a read range before ‘Filter Activity’.
Does the ‘Filter Activity’ not store its output in any variable? Or is there a way to dynamically store the filter output in a new datatable?
you are using “Filter Table Activity”?
Visit this thread:
Yes, we are doing read range - getting distinct values of the column to be filtered in a list - Passing each distinct item as an input to ‘Filter Table’ activity.
We should now be able to get this output and send email in a loop. We are just not able to access the filtered output since there is not ‘output’ parameter in the activity.
You can take filter output in datable. See that edited above post link.
Thanks so much @aksh1yadav
We dint know about the ‘use filter’ property in ‘Read Range’ and hence were getting the entire table.
I click on “Download Sample” at the end of “How to Filter a Data Table”
I get an error:
Message: Access Denied
Can you let me know how to download this example?
Don’t know why you facing this because this questions exists in a available category for every user. Try to go that link mentioned and from their try to download otherwise if you will still face the same then just let me know
Will share with you
I am trying to filter scrubbed data and write the same in excel, tried the solution shared by you.
Table could bot found as my range is not written in table form, please check if you can help.
no 2.xaml (12.3 KB)
Filter Table activity will work on a table exists inside an Excel.
so better to use Datatable.Select() with your condition which will return an array of DataRow.
Then add that DataRow array in a datatable and then write that Datatable in an Excel.
Thanks @aksh1yadav your solution worked out,
you keep helping people so below is one more way suggested by @ClaytonM
I can’t download the file either, 403 Forbidden?
Message: Access Denied
refresh it …might be your browser session has been over
Tried it over 10 times, restart the browser and even tried another browser but still having the same result Is the link working there?
it’s working. I can download it. It’s probably got to do with your own internet
Thank you. Will try it from another connection
I tried your solution, but the read range doesn’t work in my case.
This is, I think, because the range is variable. The data in this sheet is different everytime, and based on the filter, the first row might not be A2, but A6. I thought I could solve this part by simply including the headers, so it could read range from A1, but then I still have the end of the range, which is also variable (for instance, column A goes until A20, but last row with filter is A18).
Do you have any idea on how to solve this?
Thanks in advance!
I m not getting much info about what you are trying to say but based on what i have understood you can leave the read range to " ".
if i m wrong then share sample or screenshot of your problem
Thanks for thinking with me!
I think the problem is my table doesn’t start at the top of the excel file, as shown below, the first row is used for some other data. This needs to be there, unfortunately. So, normally, the data starts from cell A3, but when the filter is on, it can be that it starts at A6, like shown below.
Also, I didn’t to read all columns, some could be left out, but because I don’t know how many rows to copy either (same problem as the unkown start of the range) this isn’t possible.
I now handle this by indeed setting the range to " ", and then in the datatable removing some rows and columns wherever needed. Not the neatest solution I guess, but it works.