This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Being able to make data driven decisions and act on real-time data is important to organizations because it enables them to either avert crisis in systems that monitor product health and take other actions based on their requirements. For example, a shipping company may want to monitor their packages and act in real-time when the temperature of the packages becomes too hot. One way of monitoring and acting on data is to use Data Activator, which is a no-code experience in Microsoft Fabric for taking action automatically when the condition of the package temperature is detected in the data.
Let’s look at Contoso Bikes, a fictitious bike rental company that has a real-time dataset of all bikes available in the docking stations scattered across different neighborhoods in the city. They want to optimize the availability and distribution of their bikes based on the supply and demand patterns. They want to automatically trigger alerts, notifications, or workflows when certain conditions are met in the data, high or low availability of bikes in a certain neighborhood to action job requests to increase the number of available bikes at docking stations.
Using custom actions to trigger alerts with Data Activator To achieve this, you can set up custom actions with Data Activator to trigger alerts that will enable Contoso Bikes to act on the data. Custom actions in Data Activator are reusable action templates that you can use in multiple triggers, in multiple Reflex items. A custom action defines how to call a specific external system from a Data Activator trigger using a flow
An alert needs to be already set on your data, you can follow these steps to get and set one using the sample bike data.
Acting_on_Real-Time_data_using_custom_actions_with_Data_Activator
Acting_on_Real-Time_data_using_custom_actions_with_Data_Activator
Acting_on_Real-Time_data_using_custom_actions_with_Data_Activator
Acting_on_Real-Time_data_using_custom_actions_with_Data_Activator
To trigger and send actionable alerts to Contoso Bikes employees, you can use Power Automate as a custom action. Then you will be able to have a notification that is sent to Contoso Bike with an option to mark a job request completed after the bike docking stations have been restocked.
Acting_on_Real-Time_data_using_custom_actions_with_Data_Activator
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Not enough bikes at the docking stations",
"wrap": true,
"style": "heading",
"id": "lblDisplay"
}
]
},
{
"type": "TextBlock",
"text": "Please see and increase number of bikes in the docking stations below",
"wrap": true,
"size": "Small",
"weight": "Lighter",
"color": "Default",
"isSubtle": true,
"id": "lblDescription"
},
{
"type": "FactSet",
"facts": [
{
"title": "Bikepoint:",
"value": "@{triggerOutputs()?['body/inputFields/Bikepoint']}"
},
{
"title": "Neighbourhood:",
"value": "@{triggerOutputs()?['body/inputFields/Neighbourhood']}"
},
{
"title": "No. of bikes:",
"value": "@{triggerOutputs()?['body/inputFields/No of Bikes']}"
},
{
"title": "No. of Empty docks:",
"value": "@{triggerOutputs()?['body/inputFields/Empty Docks']}"
},
{
"title": "Street:",
"value": "@{triggerOutputs()?['body/inputFields/Street']}"
},
{
"title": "Job No.",
"value": "@{body('Create_a_job_item')?['Title']}"
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Completed",
"id": "btnCompleted"
}
]
}
]
}
Acting_on_Real-Time_data_using_custom_actions_with_Data_Activator
Summary
By creating custom actions, you can act on data in real-time and across different platforms. You can also customize the actions to suit your specific needs and scenarios. With Data Activator, you can turn your data into actions and achieve your business goals.
Other resources
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.