Wait for Logic App Alert Activity
- Last UpdatedSep 30, 2024
- 3 minute read
Activity Description
Use Wait for Logic App Alert activity to wait for an alert from the Logic App based on the alert key filter.
Activity Properties
To use Wait for Logic App Alert activity, follow the given steps:
-
In the Process Designer window, select Call Logic App activity.
-
Drag and drop the Wait for Logic App Alert activity on the Process Designer window.
-
Right-click the Wait for Logic App Alert activity and then select Activity Properties.
Name & Description
Use the name and description properties to specify the name and description for the activity.
-
Name: Use this property to enter a name for the activity.
Property Type: Mandatory.
-
Description: Use this property to enter a brief description to be displayed for the activity.
Property Type: Optional. Set this property only if required.
Configuration
Use these properties to configure the functionality of the activity.
-
Logic App Alert Filter: Use this property to set the alert key along with the Web API URL to post from the Logic App.
Property Type: Mandatory
In the Logic App Alter Filter window, configure these as follows:
-
Enterprise Console: Select an Enterprise Console site. The list shows Enterprise Console sites to which repositories are mapped, and for which Azure Service Bus (with Shared Access Signatures) are configured.
-
URI: The URI is automatically generated based on the selected Enterprise Console.
-
Authorization Token: When Logic App connection is established from CONNECT Repository, Service Access token or CONNECT Account Access token should be passed as Authorization header in the format: Bearer <Token>
-
Logic App Alert Key: Enter a value for the alert key or click Expression Builder to generate value from an expression, if required.
-
-
Valid for Alert: Use this property to set the number of alerts from the Logic App. If the value is set to 0, then there is no limit for the number of alerts from the Logic App.
Property Type: Mandatory
-
Logic App Output XML: Use this property to set the XML variable to post from the Logic App.
Property Type: Optional
In the Logic App Output XML window, configure these as follows:
-
Logic App JSON Data: Enter the JSON schema to be passed from the Logic App.
-
Logic App XML Schema: After entering the JSON schema for Logic App JSON Data, click Get XML Schema to auto generate the XML schema.
-
Output XML Variable Name : Enter a name for the XML variable. Upon saving, this variable will hold the schema.
-
Exception Behavior
Each activity has the Raise Error on Unhandled Linked Output property on click of which, it shows all the default configured mapped error outputs in red with their check boxes selected
See Mapped Error Output for more details.
Looping Behavior
The property in the Looping Behavior group has been described below. You can use this property to specify the looping behavior of the activity.
Loop through this action if output is - This property is used to specify the condition for looping the activity by selecting an activity output from the drop down. The looping option for this activity is Completed.
Property Type: Optional (This property needs to be set only if necessary.)
Activity outputs:
The Wait for Logic App Alert activity returns the following values:
-
If the Valid for Alert property is set to/or is 0, then after receiving an alert from the Logic App, the output will be Alert Received, and the activity will be in sleep state.
-
If the Valid for Alert property is set to/or is 1, then after receiving an alert from the Logic App, the output will both Alert Received and Action Completed, and the activity will be in completed state.
-
If the Valid for Alert property is set to/or is more than 1, then after receiving an alert from the Logic App, the output will Alert Received, and the activity will be in sleep state.
Note: While posting alert from the Logic app, ensure the following are part of the HTTP
request:
- URI as generated based on the selected Enterprise Console.
- Authorization Token - The Service Access token or CONNECT Account Access token is passed as Authorization Headers in the format Bearer <Token> when Logic App connection is established from CONNECT Repository.
- ApplicationName and LogicAppAlertKey in JSON schema are in the body.