# Perfom a repeat action a specific number of times

**URL:** <https://community.triggre.com/t/perfom-a-repeat-action-a-specific-number-of-times/751>\
**Category:** Flow parts\
**Tags:** actions, designer, repeat, flow-parts\
**Created:** [December 31, 2019, 11:00pm UTC](https://community.triggre.com/t/perfom-a-repeat-action-a-specific-number-of-times/751 "2019-12-31T23:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mar](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/mar/32/395_2.png) [@Mar](https://community.triggre.com/u/Mar)\
**Post date:** [December 31, 2019, 11:00pm UTC](https://community.triggre.com/t/perfom-a-repeat-action-a-specific-number-of-times/751/1 "2019-12-31T23:00:00Z")

</div>

A **Repeat action** is based on the resulting list of a **Lookup**. However, in some situations you want to perform a **Repeat action** a specific number of times, like 10 times.

You can easily create a function to repeat a specific number of times by yourself.

The source of a **Repeat action** is a **Lookup**. So you need to create a **Lookup** that gives you the amount of results that is equal to the number of times that you want to repeat your action.

## Setup

1. Create the **Data item** _Loop count:_  

2. Fill it with numbers without decimals.

> **Tip:** create an Excel sheet with a lot of rows and import that into your **Data item**.

1. In the **Flow part** , create a data **Look-up** for the number of times you want to execute the repeat. In this example, the repeat will execute 15 times.  
 ![Data look-up creation](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/57690274367d51bc6cdabdf4fbf6b1fb13ce148f.png)

2. Create the repeat, based on the **Lookup** :  

3. There is no need to order the **Repeat action**.

4. Design the actions within the **Repeat action** like normal.

## Keep this in mind

Since the **Repeat action** uses the loop count as **Input** , you must create the **Input** for the repeat within the repeat action itself.

That can’t be a list, it must be a single **Data item** of a data **Look-up**.

If the repeat is not at its limit yet (step 7 of 10), but the **Lookup** produces no **Output** (does not find a **Data item** to work with), you must end the repeat to prevent unwanted things from happening:

 ![Flow part overview](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/49e35a5d824f8382825b928f3992c2a858c6b391.png)
