> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/alerts4dynamics/configuration/record-based-alert/rule-based-alert.md).

# Rule-Based Alert

Alert created with respect to specific conditions in CRM is called **Rule-Based Alert**. There are two types of Rule Based Alerts:

1. **Simple:** Create Alerts based on the View of an entity.
2. **Advanced:** Create Alerts based on filter criteria or conditions (conditions defined in Fetch XML).

### 1) Simple Alerts

Here are the steps to create Simple Alerts:

* Go to **Alerts4Dynamics App --> Alerts --> New** and fill in the following fields.
  * **Name:** Enter a suitable name for this Alert.&#x20;
  * **Alert Type:** Select the type of alert you are creating. Here you have the option to choose Rule Based or Announcement. Select Rule Based from the dropdown.&#x20;
  * **Entity Configuration:** Select the Entity Configuration.&#x20;
  * **Rule Mode:** Select **Simple**.  (This option only appears for Rule Based alerts.)

![](/files/5MqgzI9yFlkA9XFDZfKW)

* Select the View for which Alert has to be created.

![](/files/OzGZNXBMdc9K5f4FKZQU)

* Select the **Interval**.

<figure><img src="/files/nrGTbsTCiNCQCUoFzI1G" alt=""><figcaption></figcaption></figure>

1. **Poll Interval:** This is the duration after which the system checks if any new record has been created that satisfies the condition provided. (In above case, based on the condition of the selected view.)
   * The workflow can run:&#x20;

     * **Only Once:** The alerts for all the records in selected view are created Only Once.&#x20;
     * **X Hour(s):** New records in the defined condition are checked for in every X Hour(s). If new records are found that satisfy the defined condition, new notifications are created for them.&#x20;
     * **X Day(s):** New records in the defined condition are checked for in every X Day(s). If new records are found that satisfy the defined condition, new notifications are created for them.&#x20;
     * **X Week(s):** New records in the defined condition are checked for in every X Week(s). If new records are found that satisfy the defined condition, new notifications are created for them.&#x20;
     * **X Month(s):** New records in the defined condition are checked for in every X Month(s). If new records are found that satisfy the defined condition, new notifications are created for them.

2. **Interval:** This is a numeric value of X in the Poll Interval.

* After entering values in the Alerts field click on Save and the alert will be created. Create new message from the Messages sub grid. To know how to Add New Message go to the [**Message** ](https://docs.inogic.com/alerts4dynamics/configuration/messages)section.

![](/files/w5lTCp2pRDsD6EIegpOw)

### 2) Advanced Alerts

Here are the steps to create Advanced Alerts:&#x20;

* Go to **Alerts4Dynamics App --> Alerts --> New** and fill in the following fields.
  * **Name:** Enter a suitable name for this Alert.&#x20;
  * **Alert Type:** Select the type of alert you are creating. Here you have the option to choose Rule Based or Announcement. Select Rule Based from the dropdown.&#x20;
  * **Entity Configuration:** Select the Entity Configuration.&#x20;
  * **Rule Mode:** Select **Advanced.**  (This option only appears for Rule Based alerts.)

![](/files/vTbfBnnzv6GbqNpAp1Dn)

* Enter the Fetch XML as per your conditions.

![](/files/lzsL54Rru8r9CtpNCtBt)

* After creating the **Alert**, you can add a message to it. To know how to **Add New Message** go to the [**Message** ](https://docs.inogic.com/alerts4dynamics/configuration/messages)section.

![](/files/clOY9DpGOzZvf60l4NMF)

{% hint style="success" %}
For any queries, reach out to us at <crm@inogic.com>
{% endhint %}


---

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

```
GET https://docs.inogic.com/alerts4dynamics/configuration/record-based-alert/rule-based-alert.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.
