Receiving Multiple emails from Azure Logic apps.
Hi Team,
This is regarding the Azure logic apps.
We have set the email notification for our pipelines status. Issue is we are receiving 3-4 emails for each pipeline .
Could you please help us to undertsnd and solve this issue.
Thanks in advance.
Azure Logic Apps
-
Shireesha Eeraboina • 1,720 Reputation points • Microsoft Vendor
2025-01-10T11:05:32.36+00:00 Hi @Nemade, Pradnya,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
Can you please provide the details of the trigger configuration and the pipeline steps that are causing the emails to be sent? Specifically, are the emails triggered multiple times for the same pipeline execution, or are they linked to specific events within the pipeline?
Could you please share the expected behavior output with us? This will help us provide a more accurate solution.
Thankyou.
-
Abiola Akinbade • 23,610 Reputation points
2025-01-10T11:12:05.3033333+00:00 Hello Nemade, Pradnya, please can you provide some more details on the setup?
-
Shireesha Eeraboina • 1,720 Reputation points • Microsoft Vendor
2025-01-13T06:35:28.2233333+00:00 Hi @Nemade, Pradnya,I am following up to see if you had a chance to review my previous response and provide the requested information so we can proceed with assisting you further.
Thankyou.
-
Nemade, Pradnya • 0 Reputation points
2025-01-13T09:42:56.7966667+00:00 hi @Shireesha Eeraboina ,
We have set the trigger using below details on logic apps:
1st is manual HTTP request, below are the details:
{ "type": "Request", "kind": "Http", "inputs": { "method": "POST", "schema": { "properties": { "pipelinename": { "type": "string" } }, "type": "object" } } }
second, Send an Email(V2): below are the connection details:
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"referenceName": "office365"}},
"method": "post"
About the pipeline- email trigger is set for single pipeline, we have Web activiti within the pipeline.
Expected output is- > once the pipeline is completed it should trigger single email.
-
Shireesha Eeraboina • 1,720 Reputation points • Microsoft Vendor
2025-01-13T11:39:35.03+00:00 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.
-
Shireesha Eeraboina • 1,720 Reputation points • Microsoft Vendor
2025-01-16T08:53:47.3066667+00:00 Hi @Nemade, Pradnya,
Just checking in to see if the information above was helpful. If you have any further updates on this issue, please feel free to post them here.
-
Shireesha Eeraboina • 1,720 Reputation points • Microsoft Vendor
2025-01-17T00:59:50.87+00:00 Hi @Nemade, Pradnya,
Following up to see if you have chance to check my previous response and help us with requested information to check and assist you further on this.
-
Nemade, Pradnya • 0 Reputation points
2025-02-14T12:25:34.6533333+00:00 Thank you for the solution.. i tried this but somehow not working yet.
is there any way we can have a connect over call? please let me know.
Thank you!
Sign in to comment