I am trying to filter my data table based on following conditions . However, the output shows blank even if there are matching values. Below are my conditions which I need to be filtered. If I want to implement Linq how the query should be?
mismatched_column=0.0
sfdc_RPA_Close_Eligible__c
ns_created_date= Last seven days date
sfdc_order_type= New Business, Renewal
ns_class_name= Azure, GCP
Added to that keen observation of Ashok, also validate your datatypes in your datatable. If those true/false values are auto converted into actual booleans, making a filter with “true” (which is a string) will automatically filter out all rows.
any checks has to be done at the datatable (after read-in e.g. with a read range) as values visualized in EXCEL are not mandatory within the same format / datatype in the DataTable.
Filter DataTable is tricky one. Here is alternate solution with Select method in Assign activity.
dtInput.Select("[sfdc_RPA_Close_Eligible__c]='true' AND ([sfdc_order_type]='New Business' OR [sfdc_order_type]='Renewal') AND ([ns_class_name]='Azure' OR [ns_class_name]='GCP') AND [mismatched_column]='0.0'").CopyToDataTable