For these kind of update operations we basically go for For Each Row in Datatable and then Update the values using Assgin Activity after the Conditions match using If Activity.
Have you tried this approach ? Or if this is not what you were looking for, Could you let us know what exactly is your Requirement ?
We have the following Info from your End :
Datatable/Excel filled with Variant and Company Name.
Inputs would be Variant,Company Name and Value.
Based on the Inputs Update it’s corresponding row’s Value column.
But we need to know whether there would be multiple values that need to be updated or just a Single value/row in Datatable.
Hi @supermanPunch
If I will use If then I might have to create multiple scenarios I can try that .But are there any other way
1)Yes the data table we can fill with the Variant and Company Name before hand leaving the Value column blank
2)Based on Variant and Company name corresponding Value field should be filled
Different Variant and Company will have different Value
Then Could you let us know How these Input values are stored for Comparison with the table that should be updated with Value ? Are these values stored in Another Datatable/Excel ? How are these values retrieved ?
Is an RE-Framework or Get Transaction Item Activity being used ? Then for each received Transaction do you want to update the value in Datatable ? Or Are all the Queue Items collected at once using Get Queue Items Activity ?
Depending on the approach being used we could decide on the method to be used for Update.
Maybe you could try with the below Approach at first which uses For Each Row in Datatable Activity.
We also use a Linq to filter the matching items from the Queue Items retrieved. Then if there are matching values, we retrieve the Value from that matching item.