# Copy StoreRecord In Loop

## Description:

Copy StoreRecord in Loop

Use this action to copy the records of the datasource that exists in the array of records generated by the action loop records in some other datasource.

For example, you want to copy the records where attribute**a1** is not null into the datasource **D1**.

In this case, you can use Action Copy StoreRecord in Loop inside the action loop records where enable condition will be #{a1} != null and target datasource alias will be the datasource where you want to copy the records.

### Allowed Parent Components:

1. Loop
2. Loop Records

### Allowed Child Components:

1. Set Value

### 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

### ➤ Target Data Source Alias

Choose the target data source alias

Allowed Values: Choose the target data source alias

### ➤ Create As New Record

Check this if you want the source record to be inserted as new record into the target data source. Or else it will be copied into the current record of the target data source

Allowed Values: Yes/No


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudio.io/ui-components/actions/actioncopyrecordinloop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
