# Update StoreRecord In Loop

## Description:

Update StoreRecord in Loop

Use this action to update the records of a datasource which exists in the array of records generated by the action loop records.

For example, you want to update attribute **a1** as **Y** in all the records of the datasource where attribute a2 is **not null**.

In this case, you can use Action Update StoreRecord in Loop inside to action loop records where value expression is `Y`, target attribute is `a1` and enable condition will be #{a2} != null.

### Allowed Parent Components:

1. Loop
2. Loop Records

### Allowed Child Components:

No child available

### Properties

### ➤ Enable Condition

Specify an expression that should be evaluated to a boolean \[e.g. #{dsAlias.attr1} == 'X' && #{dsAlias.attr2} > 1]. If no expression is specified, it will be considered as true.

Allowed Values: An expression which should return boolean after evaluation

### ➤ Value Expression

Specify an expression that should be evaluated to a string or number depending on the target attribute

Allowed Values: Specify an expression that should be evaluated to a string or number depending on the target attribute

### ➤ Target Attribute

Choose the target attribute into which the above value to be set

Allowed Values: Choose the target attribute into which the above value to be set

### ➤ Set As Transient

Check this to update the record without making it dirty

Allowed Values: Yes/No
