Trends

MH506 – Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

Introduction

This article will detail the configuration of alert events in Dynamics 365 FO to monitor and subscribe to events in Logic Apps, ensuring the successful extraction of outbound events in near real-time.


Step-by-Step Instructions to Enable Change-Based Alerts in D365FO

Access the Business Event Catalogue

1.1 Sign in to D365FO:

  • Log in to your Dynamics 365 Finance and Operations environment.

1.2 Navigate to Business Events:

  • Go to System administration > Setup > Business events > Business events catalogue.

1.3 Locate the Change-Based Alerts Event:

  • In the Business Events catalog, search for the BusinessEventsAlertEvent.
  • You can filter by Event ID or scroll through the list to find it.
image-64 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

Enable the Business Event

2.1 Enable the Event:

  • Click on +Activate

Configuring Endpoints is not required

  • Both Azure Logic Apps and Power Platform offer out-of-the-box actions to read Alert business events. Therefore, configuring an endpoint is not required, as it will be automatically created upon the first data retrieval.

Here’s the high-level summary presented in a table format:

Endpoint TypeDescriptionProsConsUse CaseCost
Azure Service Bus QueueQueue-based messaging system for asynchronous communication, storing messages until processed.– Decoupled communication
– Message ordering
– Dead-lettering
– Single consumer
– Throughput limitation
Asynchronous processing, e.g., work orders or transactionsCharged based on the number of operations and storage.
Azure Service Bus TopicPub/sub model where messages are sent to a topic, and multiple subscribers receive copies of the same message.– Multiple subscribers
– Message filtering
– Complex configuration
– Potential message duplication
Broadcasting events to multiple services, e.g., multi-department alertsCharged based on operations, storage, and each subscription.
Azure Event GridFully managed event routing service enabling event-driven architectures, supporting high scalability.– High scalability
– Easy integration with Azure services
– Low latency
– Limited custom logic
– Requires understanding of event-driven architecture
Real-time event processing, e.g., triggering workflows or functionsPay-per-event model, with charges based on operations and event delivery.
Azure Event HubBig data streaming platform and event ingestion service, capable of processing millions of events per second.– High throughput
– Integration with big data services
– Complexity in setup and management
– Higher cost
Telemetry and log data capture and analysisCharged based on throughput units, data ingress/egress, and additional features.
HTTPS (Webhook)HTTP-based callback mechanism that triggers an HTTP POST request to a specified URL when a business event occurs.– Simplicity
– Direct communication with external systems
– No retry mechanism
– Scalability issues under high load
Direct integration with external systems or services, e.g., simple event notificationsMinimal cost, mainly related to running the web service or handling incoming requests.
Azure Blob StorageScalable object storage service for unstructured data, used for storing files, logs, and large datasets.– Cost-effective
– High durability and availability
– Simple to use
– Not real-time
– No processing logic
Data archiving and storing large datasets, e.g., business event logs or bulk data exportCharged based on data storage, read/write operations, and data retrieval.

Set Up Change-Based Alerts batch job

3.1 Navigate to System Administration

  • Go to System Administration > Setup > Alerts > Change based alerts
  • Click on Options in the toolbar, and then select Create alert rule.
  • Set the recurrence to 1 minute. This configuration ensures that events are sent to the Logic App every minute. These are lightweight alerts, and batch servers handle them efficiently. You may adjust the timing based on your specific business requirements.
image-65 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

4. Set Up Change-Based Alerts for ‘PickList-Pick’ subscription ID

4.1 Navigate to Material Handling equipment Interface Outbound queue

  • Go to Material Handling Outbound Queue > Common > Outbound Queue

4.2 Filter the Outbound Queue List Page

  • Filter the “Outbound Status” Column: Set the filter to display only records where the status is Ready.
  • Filter the “Subscription ID” Column: Apply a filter to show records with the Subscription ID PickList-Pick.

4.3 Create a Custom Alert Rule

  • Navigate to the “Alert me” Tab:
    • Select the field name Outbound Status.
  • Set the Event Field: Choose Is Set To and set the value to Ready.
  • Configure Alert Delivery:
    • Turn on the Send Externally toggle button to enable external alerts.
  • Note the Rule ID: Record the Rule ID, as it will be required for triggering the Logic App.
  • Save the Rule: Click OK to finalize the alert rule.
image-66 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO
image-67-580x1024 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

High Level configuration of Putaway events

In our use case, inbound containers are initially received at the Goods In locations and subsequently transferred to the External WMS storage locations. The External WMS then generates putaway work for these movements. Upon completion, the External WMS sends a completion message back to Dynamics to register the closure of the transaction. To facilitate this process, we will utilise the ‘Movement by Template’ work creation process.

Mobile Device Menu Item

image-68 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

Work Template

image-69 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

Location Directives

Directive action set to MHAX location

image-70 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

Mobile Device Menu

image-72 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

Movement by Template

  • Process a movement on PDA
image-73 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO
image-74 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO
  • Verify a work
image-75 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO
  • Verify Outbound Events
image-76 MH506 - Proactive Monitoring: Setting Up Alert Events for MHAX Subscriptions in Dynamics 365FO

Tip to setup multiple alerts from same list page

When setting up alerts after the Filter List page, each alert will be unique to the records filtered. This approach is effective for our use case, where alerts need to be configured based on subscription IDs.

Please follow the steps outlined above to create alerts for the following subscriptions:

  • PickList-Put
  • Putaway-Pick
  • Putaway-Put

Ensure to note down the alert rule ID for future reference.

Share this content:

I am Yogeshkumar Patel, a Microsoft Certified Solution Architect and ERP Systems Manager with expertise in Dynamics 365 Finance & Supply Chain, Power Platform, AI, and Azure solutions. With over six years of experience, I have successfully led enterprise-level ERP implementations, AI-driven automation projects, and cloud migrations to optimise business operations. Holding a Master’s degree from the University of Bedfordshire, I specialise in integrating AI with business processes, streamlining supply chains, and enhancing decision-making with Power BI and automation workflows. Passionate about knowledge sharing and innovation, I created AI-Powered365 to provide practical insights and solutions for businesses and professionals navigating digital transformation. 📩 Let’s Connect: LinkedIn | Email 🚀

Post Comment

Table of Content