So here im looping through partno column and entering the number in an application, but i want to save the folder with the number associated with partno which is custno.
Since this data is present in a DataTable.
I guess you would have used a For each Row in DataTable and are looping through different rows one at a time.
currentRow(“partno”).toString would return you partno which you are using in a Web Application.
While creating the folder you can use currentRow(“Custno”).toString in the same loop.
Im using reframework, where im getting each transaction item from column “partno”.
im entering this transactionitem into an application, but i want to use the value of cust no associated with partno value for further things.
So are you using REFramework with DataRow as transaction item?
if yes, in_TransactionItem(“Custno”).toString should work.
If you are using QueueItem, you might have to add CustNo data also to the queue wherever your are using Add Queue Item.
After it is added to queueitem and is retrieved in RE_Framework, you can use this expression : in_TransactionItem.SpecificContent(“CustNo”).toString
If the data is unique and you require the entire data row, you can use DataTable.Select() or FilterDataTable and get the first item in both the approach. This will return the data row you are looking for. It is better to use the first approach, as the second approach involves another datatable to store the output from FilterDataTable.
Approach 1: Filter using DataTable.Select() expression.
excelDT.Select(“partno='”+currentRow(“partno”)+“'”)(0)
The above expression will return the datarow that matches input partno.
Use for each row in datatable activity to iterate every row in datatable. Take the two assign activities to store the values.
In 1st assign activity → Variablename1 = Currentrow(“custno”).toString
In 2nd assign activity → Variablename2 = Currentrow(“partno”).toString
You can use the first variable to enter in the web application and
You can use the second variable to save the filename.