# Power Automate Flow

To enable automatic assignments on the update, follow the steps given below:

* Create a new Power Automate Flow and add **‘When a record is created, updated or deleted’** step of **‘Common Data Service (Current Environment)’** connector.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MZK1Y2d91mhb_AQzRzf%2F-MZK4XSyGhOLmYuF9BSR%2FPower%20Auto%20WF_1.png?alt=media&#x26;token=c6dda2f7-e773-49f4-8565-9c2610901963" alt="Power Automate Flow"><figcaption></figcaption></figure>

* Select **Trigger** condition (For example, Update).&#x20;
* Select entity for which you want to enable automatic assignment --> Select Scope as **‘Organization’.**&#x20;
* Based on the requirement add **Filtering attributes** and **Filter expression**. For Example, if you want to run the assignment on change of only **‘status reason’** field then add **‘statuscode’** as logical name of the field. The flow will trigger only on change of the **Status Reason** field.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MZK1Y2d91mhb_AQzRzf%2F-MZK4ftOkacP3umLoaTK%2FPower%20Auto%20WF_2.png?alt=media&#x26;token=dc6d8b79-2ef5-4bc6-ad37-f15f81445ef6" alt="Power Automate Flow"><figcaption></figcaption></figure>

* Add **‘Perform an unbound action’** step.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MZK1Y2d91mhb_AQzRzf%2F-MZK4m34vOf8KfKiWwK3%2FPower%20Auto%20WF_3.png?alt=media&#x26;token=822d9408-8103-4a22-84ab-edfecdcc4462" alt="Power Automate Flow"><figcaption></figcaption></figure>

* Select **‘ikl\_InogicAddItemsToQueue’** in Action Name --> Enter **logical name** of your main entity in **Primary Entity** name --> Select unique identifier of the current record in **PrimaryEntityId.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MZK1Y2d91mhb_AQzRzf%2F-MZK4rJ6PF6FiSlJZYpx%2FPower%20Apps%20WF_4.png?alt=media&#x26;token=b5d06369-b74e-4067-80f7-76bad5fe3e31" alt="Power Automate Flow"><figcaption></figcaption></figure>

* **Save and test** the Power Automate flow.

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