Skip to content

Commit b816f42

Browse files
Added section on how to access email message ID
1 parent 195a4d2 commit b816f42

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

articles/communication-services/concepts/troubleshooting-info.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ To help you troubleshoot certain types of issues, you may be asked for any of th
2525
* **Call ID**: This ID is used to identify Communication Services calls.
2626
* **SMS message ID**: This ID is used to identify SMS messages.
2727
* **Short Code Program Brief ID**: This ID is used to identify a short code program brief application.
28+
* **Email message ID**: This ID is used to identify an email delivery request.
2829
* **Correlation ID**: This ID is used to identify requests made using Call Automation.
2930
* **Call logs**: These logs contain detailed information that can be used to troubleshoot calling and network issues.
3031

@@ -138,6 +139,35 @@ The program brief ID can be found on the [Azure portal](https://portal.azure.com
138139
:::image type="content" source="./media/short-code-trouble-shooting.png" alt-text="Screenshot showing a short code program brief ID.":::
139140
---
140141

142+
## Access your email message ID
143+
144+
# [.NET](#tab/dotnet)
145+
When troubleshooting send email or email message status requests, you may be asked to provide a `message ID`. This can be accessed in the response:
146+
147+
```csharp
148+
Console.WriteLine($"MessageId = {emailResult.MessageId}");
149+
```
150+
151+
# [JavaScript](#tab/javascript)
152+
```javascript
153+
const messageId = response.messageId;
154+
if (messageId === null) {
155+
console.log("Message Id not found.");
156+
return;
157+
}
158+
```
159+
160+
# [Java](#tab/java)
161+
```java
162+
String message_id = response.getMessageId();
163+
```
164+
165+
# [Python](#tab/python)
166+
```python
167+
message_id = response.message_id
168+
```
169+
---
170+
141171
## Enable and access call logs
142172

143173
# [JavaScript](#tab/javascript)

0 commit comments

Comments
 (0)