I want send an email using Microsoft Graph SDK. Then, when the recipient replies to the email, I want to associate the reply to the sent message.
So I've sent a message using
GraphClient.Users[userId].SendMail(message, true).Request().PostAsync();
Then had the user reply to it. When I read both the sent and received messages back via
GraphClient.Users[userId].MailFolders[{folderName}].Messages...;
I discovered that the ConversationId
property on both were the same. I have the following questions:
ConversationId
the mechanism by which I associate emails? GraphClient.Users[userId].SendMail(message, true).Request().PostAsync()
, is there a way to get back the ConversationId
of the message that was just sent?ConversationId
? https://graph.microsoft.com/v1.0/users('user@domain.com')/MailFolders('Inbox')/messages/?$select=ReceivedDateTime,Sender,Subject,IsRead,inferenceClassification,InternetMessageId,parentFolderId,hasAttachments,webLink&$Top=10&$expand=SingleValueExtendedProperties($filter=(Id%20eq%20'String%200x1042'))
3,4 Subscription Webhooks https://docs.microsoft.com/en-us/graph/api/resources/webhooks?view=graph-rest-1.0 are what would work well for this but the ability to create a Filter (eg on the coversationId or In-reply-To) is still in the backlog (AFAIK) https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests/suggestions/19081306-add-select-and-filter-to-webhook-resource-subs
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.