---
description: >-
  Auto Repeat feature helps you create certain documents automatically in a
  given time period.
---

# Auto Repeat

* From version 12, you can Customize any Form to make the documents **repeatable**.
* For Example: Assuming that you follow deferred expense system for some items.
* &#x20;It requires you to create same Journal Entry every month to credit Deferred Expense account and debit Expense Account.&#x20;
* You can create first Journal Entry manually for it, and then create auto-repeat transaction for it.

To access Auto Repeat, go to:

Tools > Automation > Auto Repeat

### 1. How to set up Auto Repeat[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#1-how-to-set-up-auto-repeat) <a href="#id-1-how-to-set-up-auto-repeat" id="id-1-how-to-set-up-auto-repeat"></a>

#### 1.1 Customize the Form[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#11-customize-the-form) <a href="#id-11-customize-the-form" id="id-11-customize-the-form"></a>

1. Go to: **Customization > Form Customization > Customize Form**.
2. Select the form in which you want to allow creation of repeatable documents.
3.  Check 'Allow Auto Repeat' to allow the creation of repeatable documents for that Form. This is necessary for the document type to show up in the Reference Document field under the Auto Repeat doctype.

    ![Allow Auto Repeat](https://docs.erpnext.com/files/allow-auto-repeat.png)

#### 1.2 Set up Auto Repeat[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#12-set-up-auto-repeat) <a href="#id-12-set-up-auto-repeat" id="id-12-set-up-auto-repeat"></a>

1. Go to **Tools > Automation > Auto Repeat > New**.
2. Select the Reference Document Type, like Journal Entry or Sales Invoice, etc.
3. Select the Reference Document. This is the individual document that you want to repeat.
4. Set the Start Date and End Date (optional). If End Date is not specified, recurring documents will be created, unless the Auto Repeat is disabled.
5. Set the Frequency for creating repeatable documents (Daily, Weekly, Monthly, Quarterly, Half-yearly, Yearly).
6. Save.

#### 1.3 Set up Auto Repeat directly from the document[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#13-set-up-auto-repeat-directly-from-the-document) <a href="#id-13-set-up-auto-repeat-directly-from-the-document" id="id-13-set-up-auto-repeat-directly-from-the-document"></a>

You can also set a document on Auto Repeat by clicking the **Repeat** option from the **Menu** in the Toolbar.

**Note**: If a document is already on Auto Repeat, the Repeat option is not available.

![Repeat in Transactions](https://docs.erpnext.com/files/repeat-option.png)

Once you click on Repeat, a prompt for Auto Repeat will show up. Fill in the details and click on Save.

![Auto Repeat Prompt](https://docs.erpnext.com/files/auto-repeat-prompt.png)

### 2. Features[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#2-features) <a href="#id-2-features" id="id-2-features"></a>

#### 2.1 Submit on Creation[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#21-submit-on-creation) <a href="#id-21-submit-on-creation" id="id-21-submit-on-creation"></a>

If the reference document type is submittable, you get an option called _Submit on Creation_. If this is checked, your document will be submitted on creation.

![Auto Repeat Submit on Creation](https://docs.erpnext.com/files/submit-on-creation.png)

#### 2.2 Notify by Email[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#22-notify-by-email) <a href="#id-22-notify-by-email" id="id-22-notify-by-email"></a>

If you want to notify certain contacts whenever the recurring documents are created, you can check 'Notify by Email' in the Notification section of Auto Repeat. This will send the auto-generated recurring documents to the specified Email Addresses. Fields for the same are explained below:

* **Recipients**: Defines the Email IDs of the recipients for recurring document creation emails.
* **Get Contacts**: This button will fetch the contacts linked to the document that is set on Auto Repeat and fill up the Recipients field with the same.
* **Template**: You can choose an Email Template for the email. This will fill up the Subject and Message fields as well.
* **Subject**: Subject for your Email (example: Recurring ToDo created successfully).
* **Message**: Message to be sent in the Email.
* **Preview Message**: This button will show a preview of the message.
* **Print Format**: Select a print format to define document view which should be emailed to customer.

> **Note**: If the document you are setting up Auto Repeat for, is submittable, ensure that "Allow Print for Draft" is enabled in [Print Settings](https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/print/print-settings) to receive the new recurring document in Auto Repeat Notification Email. If this is not enabled, you will be notified about the recurring document creation without the document.

#### 2.3 Repeat on a particular day[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#23-repeat-on-a-particular-day) <a href="#id-23-repeat-on-a-particular-day" id="id-23-repeat-on-a-particular-day"></a>

If the frequency is set as Monthly, Quarterly, Half-yearly or Yearly, then it will create recurring documents in the respective months on the same day as the 'Start Date' of Auto Repeat. If you want to create recurring documents on some other day then you can set one of the following:

* **Repeat on Day**: Day of the month on which recurring document will be created. For example, if frequency is Monthly and you enter 7 then it will generate recurring document on 7th of the respective month.
* **Repeat on Last Day of the Month**: This option is available as the last day of every month is different. For example, in a leap year last day of Feb is 29th, and it is 28th otherwise. If you check this option, it will create recurring documents on the last day of the respective months.

#### 2.4 Ability to select weekdays for Auto Repeat[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#24-ability-to-select-weekdays-for-auto-repeat) <a href="#id-24-ability-to-select-weekdays-for-auto-repeat" id="id-24-ability-to-select-weekdays-for-auto-repeat"></a>

> Introduced in version 13

Auto Repeat with Weekly frequency allows you to select the days on which you want the recurring documents to be created.

![Auto Repeat Weekdays](https://docs.erpnext.com/files/auto-repeat-weekdays.png)

#### 2.5 Dashboard[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#25-dashboard) <a href="#id-25-dashboard" id="id-25-dashboard"></a>

You can see the Auto Repeat schedule in the Dashboard of Auto Repeat document. If you don't specify the End Date then the schedule will show only the Next Schedule Date.

![Auto Repeat Dashboard](https://docs.erpnext.com/files/auto-repeat-dashboard.png)

#### 2.6 Auto Repeat Frequency on the sidebar[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#26-auto-repeat-frequency-on-the-sidebar) <a href="#id-26-auto-repeat-frequency-on-the-sidebar" id="id-26-auto-repeat-frequency-on-the-sidebar"></a>

When a document is set on Auto Repeat you can see the Auto Repeat frequency on the sidebar. You can click on the status to see the linked Auto Repeat document.

![Auto Repeat Frequency](https://docs.erpnext.com/files/auto-repeat-frequency.png)

#### 2.7 Disable Auto Repeat[ ](https://docs.erpnext.com/docs/v13/user/manual/en/automation/auto-repeat#27-disable-auto-repeat) <a href="#id-27-disable-auto-repeat" id="id-27-disable-auto-repeat"></a>

If you check this field it will stop creating recurring documents and unlink the Auto Repeat document from the Reference Document.\
