Hello every,
I need your help .I have an table in excel and I just want to check that what value exist in front of B2 cell.
So how can I do it?
Can any body help??
Using Excel Application Scope,
pass the excel file as input.
use Read cell activity, specify the sheetname and address as “A2”, output will be saved into a string variable.
Use that string variable to know what value present infront of B2.
Hello @Nidhi2
Please use this code in an Assign Activity ((DT.AsEnumerable.Where(Function(r) Convert.ToString(r(“ID”)).Contains(“CR”) Or Convert.ToString(r(“ID”)).Contains(“FF”)).Select(Function(r) (r(“Code”)))).ToArray)
It’ll give the values from first column containing FF and CRin the second column
Check this workflow for better understanding LinqGettingColValue.xaml (13.7 KB)
thanks @vickydas for your help.
but in this workflow the values are defined .I want the dynamic type.
Like any type of data exist.bot will only find that value which exist in front of CR and FF.
can you please help
Hello @Nidhi2
If you want those values dynamic You can add variables in that query ((DT.AsEnumerable.Where(Function(r) Convert.ToString(r(“ID”)).Contains(variable1) Or Convert.ToString(r(“ID”)).Contains(variable2)).Select(Function(r) (r(“Code”)))).ToArray)