在 Outlook 中触发外部 API 调用,以回复来自特定电子邮件 ID 的电子邮件

当我回复来自特定发件人的电子邮件时,我试图触发外部 API.为了描述用例,我们有一个内部平台,人们在该平台上提出特定问题,专家回答这些问题,类似于堆栈溢出.

I am trying to trigger an external API when i reply to an email coming from a specific sender. To describe the use case , we have an internal platform where people ask specific questions and experts answer them similar to stack overflow.

我们希望为回答问题的专家启用 Outlook 功能,这将使专家能够回复电子邮件通知(来自平台),当他点击发送时,操作将是调用平台的 POST 端点在原始帖子上创建一个新回复.

We want to enable a outlook feature for experts answering questions which would enable the expert to reply to an email notification (coming from the platform) and when he hits send the action would be to call the POST end point for the platform which create a new reply on the original post.

我查看了 Microsoft 流程和 EWS API,但我找不到我正在寻找的确切内容.我可以创建自定义连接器,当收件箱中有新电子邮件时触发操作.但是,当您回复特定电子邮件时,没有任何流程会触发操作.

I have looked at Microsoft flow and EWS API but i could not find exactly what I was looking for. I can create custom connectors which would trigger an action when a new email comes in the inbox. But , there was no flow which would trigger an action when you reply to a specific email.

我正在寻求一些关于可以做什么以及可以使用哪些 API/工具来实现我们正在寻找的帮助.

I am looking for some help on what can be done and which APIs/tools can be used to achieve what we are looking for.

谢谢

推荐答案

一种选择是使用on send" 用于 Outlook Web 加载项的功能,但您仅限于支持 Outlook Online,因为它目前不支持支持 Outlook for Windows 和 Mac(并且您不能将加载项发布到 Office 应用商店).

One option is to use the "on send" capability for Outlook web add-ins, but you are limited to supporting only Outlook Online as it doesn't currently support Outlook for Windows and Mac (and you can't publish the add-in to the Office Store).

最好的选择是开发一个 COM 插件,您可以在其中完全控制回复和发送事件,并有机会在您发出 Web 请求时取消或延迟这些事件.

The best choice would be to develop a COM add-in where you will have full control over the reply and send events, and the opportunity to cancel or delay those events while you make your web requests.

一个外部选项是使用 图形增量查询在用户的已发送项目文件夹中查找新项目以检测这些发送操作.EWS 中有类似的功能 通知订阅 和 运输代理.

An outside option is to use Graph delta queries to look for new items in the user's Sent Items folder to detect these send operations. There are similar capabilities in EWS with notification subscriptions and transport agents.

相关文章