> For the complete documentation index, see [llms.txt](https://docs.cloudio.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudio.io/ui-components/actions/actioncopyrecordinloop.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
