How to get the Exact Mach using lookup range activity. For example i want to search for Policy ID column name. when i am using lookup range its giving results when " Policy " exists, but i want to check if Policy ID is available or not .Can you help me with this
Read the Excel or CSV file: Use the “Read Range” activity to read the data from your Excel file or CSV into a DataTable variable.
Check if the column exists: Use the following steps to verify if the “Policy ID” column exists exactly as "Policy ID."a. Use an “If” activity to check if the column exists. You can use the “Columns.Contains” method on the DataTable to do this.b. In the condition field of the “If” activity, enter the following expression:
YourDataTable.Columns.Contains(“Policy ID”)
c. If the condition evaluates to true, it means the “Policy ID” column exists.
Process based on the result: In the “Then” part of the “If” activity, you can perform further actions based on whether the “Policy ID” column exists or not.
hello @B_H_Akshatha_Pai thanks for answering the question. actually Excel Data is not starting from Row 1 it starts from row no 10 or 13 or it can be anywhere but not on starting row. So to find out the starting row i am searching for Column Name to identify the Starting row.