Update Datatable using groovy

Hi,

I am able to get values from data table using below script. How to update data table using script?

@CustomScriptAction(
    input = ['table',row_no],
    output = 'cell'
)
 
def customScript() {
 def cell = table.get(row_no,3)}
1 Like

You can use these custom actions to update values in a table variable

It worked.thanks!!

1 Like

Hi Ashapkina,

Is there any way to delete record from data table using script?

Do you need to remove the whole row?
You can do it like this:
my_table.removeRow(row_number)

You can find examples of working with tables here:
https://kb.workfusion.com/display/RPAe/Script+as+Custom+Action#ScriptasCustomAction-OperationswithRecorderVariables