Automate with Ease: Triggering Power Automate Flows with Data Activator

Sending
User Review
0 (0 votes)

Triggering Power Automate Flows with Data Activator

Fabrics (Microsoft Fabric) is an integrated data platform crafted to enhance data engineering, science, and analytics. It provides a comprehensive range of tools and services to handle every aspect of data operations, from storage and processing to analysis. Microsoft Fabric simplifies the data management workflow by providing a unified environment that allows seamless execution of various data tasks.

Data Activator is a Microsoft Fabric feature designed to support real-time monitoring and automate data-driven actions. It enables users to establish rules and triggers based on data changes. When predefined conditions—such as exceeding a data threshold—are met, Data Activator automatically executes predefined actions, such as sending alerts or initiating workflows. This functionality is ideal for proactive data management, ensuring users are promptly informed of significant changes or anomalies.

In organizations that provide services, resolving customer issues through case management is a critical function. Salespersons are tasked with addressing and resolving the cases assigned to them, while Sales Managers observe the progress to ensure all pending cases are managed efficiently.

Consider a scenario where a Sales Manager requires notifications when the number of pending cases for any salesperson reaches a predefined threshold. This system would enable the manager to:

  • Identify Salespersons: Detect which salespersons are not actively working on their pending cases or have an excessive caseload.
  • Reallocate Cases: Reassign cases from overloaded salespersons to others with fewer pending cases, ensuring balanced case distribution and improved overall efficiency.

By implementing such a notification system, organizations can enhance their case management processes, ensuring that all cases are addressed on time and that workload distribution remains optimal.

Initially, we developed a Power BI report that provides a comprehensive visualization of case data, incorporating various visuals, calculated columns, and measures enabling users to gain a deeper understanding of key metrics and make informed decisions.

Triggering Power Automate Flows with Data Activator

The report includes a calculated column named Exceeded, which identifies users with pending cases exceeding 50. Below is the DAX expression used for the Exceeded column in Power BI:

Exceeded = if(contact[Pending Cases]>50,UNICHAR(9650),BLANK())

Following this, we have developed a measure to calculate the total number of users who have exceeded the case threshold. This measure aggregates the count of users flagged by the Exceeded column, providing a comprehensive overview of users with high case loads.

Exceeding Users = COUNT(contact[Exceeded])

Let’s navigate to Power BI Services. If you have not yet created a workspace, create a required Workspace.

However, please ensure that the workspace is assigned a license that supports advanced features, such as Power BI Premium or Power BI Premium Per User (PPU).

Triggering Power Automate Flows with Data Activator

We created a workspace named “D Activator” with a Power BI Premium Per User (PPU) license and published the Power BI report it.

To start adding alerts in Power BI using Data Activator, follow these steps:

  1. Click the icon in the bottom left corner to access all Microsoft Fabric applications.
  2. Select Data Activator from the list.

Triggering Power Automate Flows with Data Activator

  1. Select the workspace where you want to set up the alerts. In this case, we are selecting D Activator.

Triggering Power Automate Flows with Data Activator

  1. Navigate to the Case Report within the selected workspace.

Triggering Power Automate Flows with Data Activator

In the Case Report, locate the Card Visual displaying the measure called Exceeding Users, which counts the total number of users who have exceeded the threshold. We will use this measure to set up an alert in Data Activator.

  1. Select the Card visual.
  2. Click on the ellipsis (three dots) in the upper-right corner of the visual.
  3. Choose Set Alert from the dropdown menu.

Triggering Power Automate Flows with Data Activator

The alert condition is configured to notify you when the count of exceeding users changes. This alert will trigger if:

  • The number of users exceeding the threshold increases.
  • Or if a user who was previously exceeding the threshold improves their performance and is no longer in the exceeding users’ list.

When setting up the alert, ensure you adjust the settings in the Show Save Options to match the same workspace where your Power BI report is located.

  1. Click on Create once you have verified the Condition and the Show Save Options.

Triggering Power Automate Flows with Data Activator

After creating the alert, navigate to Data Activator Reflex to enhance functionality with Power Automate Flow.

  1. Click Open in Data Activator to proceed.

Triggering Power Automate Flows with Data Activator

Follow the number to get the information.

  • These are the objects created earlier in the reflex
  • Current object’s trigger and its value with few details
  • Current Object with its Trigger, Properties, and Events

Let’s extend the functionality by adding a custom action in the Reflex.

  1. Select the Custom action > Create Triggering Power Automate Flows with Data Activator
  2. Give a name to your action and Inputs, Copy the Connection String Which will connect the Power Automate Flow to the Object’s trigger created within the Data Activator. Triggering Power Automate Flows with Data Activator
  3. Paste the Connection String in the action.
  4. Add Your actions to send mail to the users, or extend the Power Automate Flow custom functionality. Triggering Power Automate Flows with Data Activator
  5. Now let’s configure the Created Action to the trigger
  • Select the created action in the Act section in the Trigger
  • Act > Custom Action > Exceeding Users

Triggering Power Automate Flows with Data Activator

Add the Additional information

Triggering Power Automate Flows with Data Activator

We have successfully added the Power Automate Flow to the Trigger/Reflex, enabling alerts for exceeding users.

Let’s proceed to the output. Once users exceed the threshold, the flow will send an email that can be formatted as per your requirement.

Triggering Power Automate Flows with Data Activator

Conclusion:

In this guide, we demonstrated how to use Microsoft Fabric’s Data Activator to automate alerts for exceeding user thresholds in Power BI. We created a Power BI report and set up an alert to notify users when the count of exceeding users changes. This was achieved by configuring the alert in Data Activator and integrating it with Power Automate Flow to perform custom actions, such as sending notifications. This process enhances proactive data management and ensures timely responses to significant changes in case loads, improving overall case management efficiency.

Power BI

The post Automate with Ease: Triggering Power Automate Flows with Data Activator first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.