Can someone help me to check if the value say “item”(this belongs to a particular name column in a datatable) is present in a dictionary(name, email).
If it belongs , then i have to extract that particular row and add to a newly created list which is of type datarow
You can use this in the if condition inside for each row to check if value is present in your dictionary: Dict.Keys.Contains( CurrentRow(“Name”).ToString)
If it contains, you can add the row to your list/array using “Add To Collection” activity.
DT as a Datatable variable, item as a String, dictVar as a Dictionary, dataRowList as List of DataRow.
Checking the Item is Present in the Dictionary. Assuming that we are Checking the name, which is the Key in Dictionary we can do the following by Specifying the condition below in an If Activity:
@shilpa_p , We would also need to make sure the dataRowList is initialised, Hence, We do the following at the beginning, or as a Default value for the variable :