I have an excel file with some data. in column E i have two values “TRUE” and “FALSE”.
I need to filter TRUE and if the filtered value is TRUE is found in column B i need to perform some action or if value FALSE is found i need to perform a different action. Someone please help me on this.
Note: the value True may not be there in column B always. The excel data is dynamic.
So to get a clear idea in your scenario, if you have a record with True, for those you need to perform a different action and for the records with false, a different action right?
If that’s the case, without using the filter you can use a if condition to check it.
It goes like this
First read range to read the data to a datatable
Then use a for each row activity to loop through the datatable
Inside the loop, place an if condition activity to check whether it has a true value or a false value
Row(“Aging”).ToString.Equals(“TRUE”)
Now in the two boxes of the if activity place your actions based on the condition.
Thanks for the reply. But it didn’t work, even if there is TRUE in column B it is performing the action which i dropped in the else section. attached screenshot.
Thanks for the reply. I need to filter TRUE and perform some action if TRUE is not there it should perform a different action. attached is my data set. Could you please provide the workflow using filter wizard so that it would be helpful.
need to filter the elements which are true and if the filtered element is found to be true then i need to perform some action in the then section of the IF activity
Then first just clear all the rows which has true. So that you get a datatable which you need to work on and then apply for each row for that data table.
I think you didn’t understand my query. let me explain it again the excel data is dynamic it keeps changing. Sometimes there will be TRUE along with FALSE and sometimes there wont be TRUE . In case if there is TRUE i need to do some action and if there is no TRUE and only FALSE i need to perform another action. So in my workflow i just filtered TRUE and in the IF activity i need to set the condition like if the filtered data is equal to TRUE it should be doing the action in “THEN” section. if the filtered data is FALSE then it should perform activity in the else section. Hope you will be able to help me now