Hi @Nemade, Pradnya,
It sounds like you're experiencing an issue with receiving multiple email notifications from your Azure Logic Apps for each pipeline status. Here are some steps to help you troubleshoot and resolve this problem.
Ensure that the trigger for your Logic App is set up correctly. Since you are using a manual HTTP request, verify that the HTTP request is only being sent once per pipeline execution. If the request is being sent multiple times, it will trigger the Logic App multiple times and inspect the pipeline configuration to ensure that the HTTP request to trigger the Logic App is not being called multiple times. If there are multiple activities or retries in the pipeline that could lead to multiple HTTP requests, consider adjusting the pipeline logic.
Try modifying your Logic App to include a unique identifier (e.g., pipeline run ID) in the JSON payload. This will help you track whether an email has already been sent for a specific pipeline execution.
Try the below:
{
"type": "Request",
"kind": "Http",
"inputs": {
"method": "POST",
"schema": {
"properties": {
"pipelinename": {
"type": "string"
},
"runId": {
"type": "string"
}
},
"type": "object"
}
}
}
In your Logic App, add a condition to check if an email has already been sent for the given runId. You can use a storage solution like Azure Table Storage or Azure Blob Storage to keep track of sent notifications. If an email for that runId already exists, skip sending another email.