Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Resource Scheduling Optimization runs can fail for various reasons. As a best practice, we recommend that you set up an automated workflow that monitors optimization jobs and sends alerts based job status. Microsoft Power Automate is a comprehensive end-to-end automation platform that you can use to help with monitoring and send alerts when failures occur.
Create a flow in Power Automate
Sign in to Power Automate.
Select the environment where Resource Scheduling Optimization is installed.
Select Create, and then select Automated cloud flow.
Give your flow a name, and select the When a row is added, modified, or deleted trigger.
Configure the trigger parameters:
- Change Type: Modified
- Table Name: Scheduling Optimization Requests
- Scope: Organization
- Selected Columns: modifiedon, mydyn_optmizationstatus, and optmizationId
Add an action, and select Control.
Select Condition in the list. For alerts about any failures or cancellations in the past six hours, set up the following expression.
AND modifiedon is greater than addHours(-6) OR OptimizationStatus is equal to 192350003 OptimizationStatus is equal to 192350004
In this expression,
192350003
represents a canceled optimization request, and192350004
represents a failed request.In the True branch of the condition, add an action, and select Send an email notification (V3).
Configure the parameters for the email notification. To include column values in the subject or body, select the lightning bolt symbol, and then select the name of the column in the filter box.