> 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/automation/rule-based-alert.md).

# Rule-Based Alert

In order to understand how this provision works let’s consider a scenario where user wants an alert to auto dismiss once the account record moves out of **‘My Active Accounts’** entity view.

Given below are the steps to configure workflow to auto-dismiss alerts:

* Create a new alert of type **‘Rule Based’** and define the rule mode as **‘Simple’** with a view as **‘My Active Accounts’.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FtfUJYNYerDAHbCIPt9hG%2F1.png?alt=media&amp;token=826ede46-47bf-458a-a547-43d724f0f9bf" alt=""><figcaption></figcaption></figure>

* Add a message to this alert.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F2jtLZbb0TugLpSjwHXjf%2F2.png?alt=media&amp;token=94e03083-2fbb-480c-896e-b8de696bbdb2" alt=""><figcaption></figcaption></figure>

* Set **‘Auto Dismissible’** as **‘Yes’**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fh5ARpUKrAYVbRV6gQbdb%2F3.png?alt=media&amp;token=985d8d64-ab38-48be-a548-9cca0e8ef446" alt=""><figcaption></figcaption></figure>

* Navigate to **Accounts** --> **My Active Accounts** --> **Open** **any record**. Here, an alert will be displayed as a Form dialog post opening the record and it will continue showing up as long as it satisfies the rule defined in the alert configuration i.e. **‘My Active Accounts’**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FQMwMpmuBdNunyeaLsxlS%2F4.png?alt=media&amp;token=a2c89fda-8dc2-4469-a8e9-4ca5fcfcc0f5" alt=""><figcaption></figcaption></figure>

* Now deactivate this account record so that it will move out of **‘My Active Accounts’** entity view.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FuvAyKSdoBaBzPDom99dJ%2F5.png?alt=media&amp;token=2342f957-318f-4bfc-84d6-353626c41609" alt=""><figcaption></figcaption></figure>

![](https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-ML6gxGasUAzbH48q6U3%2F-ML6rS8w9AThgmLxxruN%2FEvent_6.png?alt=media\&token=ba408193-0931-4213-8981-98b7594e4b57)

* Once deactivated, a record is moved from **‘My Active Accounts’** view to **‘Inactive Accounts’** which means it no more satisfies the rule (‘My Active Accounts’) defined in the alert configurations. As soon as this happens, the alert will be auto dismissed in about 5-10 seconds. So now, if we switch to **‘Inactive Accounts**’ view and open the account record, you will no longer see an alert. **(Note: It might take a while for an alert to get auto dismissed.)**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FAb4Ca5puQWykxuKCqiD8%2F7.png?alt=media&amp;token=ad909393-ed02-4c14-85c9-88cce822e7e9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FoL9A1Y1nKARoXDGEDzKE%2F8.png?alt=media&amp;token=964c29c9-26d2-4134-a1e8-71210b320635" alt=""><figcaption></figcaption></figure>

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