Azure / Azure/LogicAppsUX

The task "Outlook.com: Send approval email" shows an error when the Approve or Reject button is clicked on

Open
#8,230 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
111
Forks
109
Avg merge
1d 23h
Merged PRs (30d)
20

Description

### Severity

P3 - Medium (Minor functionality affected)

### Describe the Bug with repro steps

I have two workflows which use the task "Outlook.com: Send approval email". I noticed that when the user clicks on any of the button in the email (approve or reject), an error message "Exception occurred while receiving response" appears. However, the workflow completes as expected. This raises concerns among the users but doesn't severely affect the application.

Expected behavior: the user sees a confirmation messages which doesn't mention any error.
Actual behavior: the message "Exception occurred while receiving response" shows up.

The behavior is reproduceable by creating a simple workflow containing two tasks: a HTTP trigger and the task in question. Trigger the workflow then click on any button in the approval email. See the error.

A similar behavior is mentioned by someone else [here](https://learn.microsoft.com/en-us/answers/questions/5545394/azure-logic-app-office-365-send-approval-email-err?comment=question&translated=false#newest-question-comment).

### What type of Logic App Is this happening in?

Consumption (Portal)

### Are you experiencing a regression?

_No response_

### Which operating system are you using?

Windows

### Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

### Workflow JSON

```json
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"triggers": {
"When_an_HTTP_request_is_received": {
"type": "Request",
"kind": "Http",
"inputs": {
"method": "GET"
}
}
},
"actions": {
"Send_approval_email": {
"runAfter": {},
"type": "ApiConnectionWebhook",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['outlook']['connectionId']"
}
},
"body": {
"NotificationUrl": "@listCallbackUrl()",
"Message": {
"To": "alexavrutin@gmail.com",
"Importance": "Normal",
"HideHTMLMessage": false,
"ShowHTMLConfirmationDialog": false,
"Subject": "Approval Request",
"Options": "Approve, Reject"
}
},
"path": "/approvalmail/$subscriptions"
}
}
},
"outputs": {},
"parameters": {
"$connections": {
"type": "Object",
"defaultValue": {}
}
}
},
"parameters": {
"$connections": {
"type": "Object",
"value": {
"outlook": {
"id": "/subscriptions/e7a6ae5c-578f-4799-92f5-c59ecf3f4a14/providers/Microsoft.Web/locations/northcentralus/managedApis/outlook",
"connectionId": "/subscriptions/e7a6ae5c-578f-4799-92f5-c59ecf3f4a14/resourceGroups/approval-test_group/providers/Microsoft.Web/connections/outlook",
"connectionName": "outlook"
}
}
}
}
}
```

### Screenshots or Videos

Image

Image

### Environment

not applicable

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.