# Configure Triggers

## What it is

A trigger tells IDC when to run a flow. There are three types: a **schedule trigger** runs the flow on a recurring interval configured in NetSuite, a **record event trigger** runs the flow automatically when a specific event happens in NetSuite (a record being created or updated), and an **on-demand trigger** lets you run the flow manually at any time.

## When you'd use it

Use this when you need to:

* Run a flow on a regular schedule (hourly, daily, etc.).
* Run a flow automatically when a NetSuite record is saved — for example, to push a new customer to your store the moment it's created.
* Enable on-demand runs so you can trigger the flow manually when needed.
* Turn off a trigger to pause a flow.

## Before you start

* You need integration admin access.
* The app must already be installed and its connection configured. See [Apps & Marketplace](/idc/idc-core/apps.md).

{% hint style="info" %}
**Which trigger type should I use?**
{% endhint %}

| I want the flow to run...                                        | Use               |
| ---------------------------------------------------------------- | ----------------- |
| Automatically at regular intervals (e.g. every hour, once a day) | Schedule trigger  |
| Immediately whenever a matching record is created in NetSuite    | Trigger On Create |
| Immediately whenever a matching record is updated in NetSuite    | Trigger On Update |
| Only when I choose to run it manually                            | Trigger On Demand |

## Step by step

### Open a flow's triggers

1. Click **Apps** in the left menu.
2. Find the app and click its **gear icon** to open the app's management view.
3. Click **Configure** on the flow you want to configure, then scroll to the **Triggers** section.

   ![The Triggers section showing the three toggle switches and the Scheduled row](/files/V5iAzocnin89JM7J8q79)

### Turn on record event triggers

4. The Triggers section shows three toggle switches for record events. Flip on the ones you need:

   * **Trigger On Create** — fires when a matching NetSuite record is created.
   * **Trigger On Update** — fires when a matching NetSuite record is updated.
   * **Trigger On Demand** — allows you to run the flow manually at any time.

   Each toggle saves automatically when you flip it — no separate Save button is needed.

### Configure a schedule trigger

5. The Triggers section also shows a **Scheduled** row. If a schedule has already been set up for this flow, its current schedule is displayed here.
6. To configure or change the schedule, click **Schedule Script**. This opens the NetSuite scheduled script deployment for this flow, where you set the interval (for example, every 1 hour or every 24 hours).

{% hint style="info" %}
Schedule intervals are managed in NetSuite's scheduler, not in the IDC dashboard directly. Changes to the schedule take effect on the next NetSuite deployment run.
{% endhint %}

### Turn off a trigger

7. To stop a record event trigger, flip its toggle switch off on the Triggers section. The change saves automatically.
8. To pause a scheduled trigger, click **Schedule Script** and set the deployment status to inactive in NetSuite.

## What success looks like

* The toggles you enabled are switched on in the Triggers section.
* For record event triggers: saving a matching NetSuite record causes a new entry to appear in [Logs](/idc/idc-core/logs.md) within seconds.
* For schedule triggers: the flow appears in [Logs](/idc/idc-core/logs.md) at the expected interval.

## Common issues

* **A record event trigger doesn't seem to be firing.** Check that the correct toggle (**Trigger On Create** or **Trigger On Update**) is switched on. Also check [Logs](/idc/idc-core/logs.md) to see if the flow ran but encountered an error.
* **The flow is running too frequently.** Click **Schedule Script** to open the NetSuite deployment and increase the interval, or turn off the schedule and use record event triggers instead.
* **I turned off a trigger but the flow is still running.** Check whether another trigger type is still active — for example, a scheduled trigger may still be running even if you switched off Trigger On Create.

## Related

* [Understanding Flows](/idc/idc-core/apps/understanding-flows.md) — how flows and their tabs work.
* [Configure a Flow](/idc/idc-core/apps/configure-flow.md) — adjust a flow's options alongside its triggers.
* [Configure Field Mappings](/idc/idc-core/apps/field-mappings.md) — control which fields sync.
* [Logs](/idc/idc-core/logs.md) — verify that triggers are firing and flows are running as expected.


---

# 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.in8sync.com/idc/idc-core/apps/triggers.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.
