"Send_an_email_from_a_shared_mailbox_(V2)" or similar do not allow for X-Entity-Ref-ID header rotation

Joshua JL. Logan 21 Reputation points
2021-03-22T17:46:36.497+00:00

Hello,

We currently have an on-premise mail server used within our API to send mails to our clients.
For our GMail users, if we do not generate a unique "X-Entity-Ref-ID" header per mail, GMail will automatically group mails together as a threaded "conversation".
This is very bad for our users as when they follow the "I forgot my password" process for example, the Password reset request mail will be grouped up with any previous request that was made possibly months/years ago, and users end up confused as to which mail is the most recent one.
Generating a unique "X-Entity-Ref-ID" for these types of emails is a perfect solution.

We recently migrated to Office 365 for business.
We can no longer use our previously coded solution using the SMTP Authentication protocol due to rate limitations on email sending (30 messages per minute, Recipient rate limit of 10,000 recipients per day) : https://learn.microsoft.com/en-us/exchange/troubleshoot/send-emails/smtp-submission-improvements#new-throttling-limit-for-concurrent-connections-that-submitmessages

We therefore would like to opt for an EventGridTopic + LogicApp solution which also makes sense with our future plans of migrating most automation services to EventGrid messaging.

However, the available connectors for Office 365 Outlook offer no means of setting the "X-Entity-Ref-ID" header, or requesting for the API to generate a new unique "X-Entity-Ref-ID" per mail send.

We're currently stuck, as we can't leverage SMTP Authentication which allows modifying the header to code the mail sending due to the rate limitations, and LogicApps don't offer any header customization at all.

Does anyone have any advice for how to proceed ?

Thank-you ahead of time.
Regards,

LOGAN Joshua

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,828 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,515 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
311 questions
{count} votes

Accepted answer
  1. Pramod Valavala 20,516 Reputation points Microsoft Employee
    2021-03-23T05:29:41.04+00:00

    @Joshua JL. Logan While the action doesn't support custom headers itself and you could use the underlying Send Mail Graph REST API which supports including custom headers which you could call using the HTTP with Azure AD connector.

    Also, please feel free to create a feature request to include support for custom headers in the action itself.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful