Updating incoming message body

%3CLINGO-SUB%20id%3D%22lingo-sub-2772733%22%20slang%3D%22en-US%22%3EUpdating%20incoming%20message%20body%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2772733%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%3C%2FP%3E%3CP%3EWe're%20building%20an%20enterprise%20product%20that%20augments%20incoming%20messages.%3C%2FP%3E%3CP%3EIn%20order%20to%20do%20so%2C%20we%20need%20to%20be%20able%20to%20update%20the%20incoming%20message.%3C%2FP%3E%3CP%3EThis%20can%20happen%20asynchronously%20after%20the%20message%20is%20already%20in%20the%20inbox%2C%20or%20it%20can%20happen%20inline.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20we%20go%20about%20doing%20such%20a%20thing%3F%20Looking%20at%20ms%20graph%20api%20we%20couldn't%20find%20an%20officially%20supported%20solution%20to%20our%20need.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2772733%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2779083%22%20slang%3D%22en-US%22%3ERe%3A%20Updating%20incoming%20message%20body%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2779083%22%20slang%3D%22en-US%22%3EIf%20you%20product%20should%20work%20with%20on-premise%20Exchange%20server%2C%20create%20a%20so%20called%20transport%20agent.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2780619%22%20slang%3D%22en-US%22%3ERe%3A%20Updating%20incoming%20message%20body%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2780619%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F100937%22%20target%3D%22_blank%22%3E%40Victor%20Ivanidze%3C%2FA%3E%26nbsp%3BThanks%20for%20your%20reply.%3C%2FP%3E%3CP%3EWe're%20actually%20more%20interested%20in%20exchange%20online.%20Do%20you%20know%20if%20there's%20a%20similar%20solution%20to%20transport%20agents%20in%20exchange%20online%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi.

We're building an enterprise product that augments incoming messages.

In order to do so, we need to be able to update the incoming message.

This can happen asynchronously after the message is already in the inbox, or it can happen inline.

 

How do we go about doing such a thing? Looking at ms graph api we couldn't find an officially supported solution to our need.

 

7 Replies
If you product should work with on-premise Exchange server, create a so called transport agent.

@Victor Ivanidze Thanks for your reply.

We're actually more interested in exchange online. Do you know if there's a similar solution to transport agents in exchange online?

You can use a Power Automate flow.
Unfortunately power automate flow allows only the operations ‘move’, ‘delete’, ‘mark as unread’ on exchange emails, and doesn’t allow changing mail content
No, if fact you can do much more if you will use Power Automate in combination with MS GRAPH API.
Ms graph api has an UpdateMessage api. But the documentation states that the ‘body’ property can only be updated when isDraft is true.
I did not find a documented way to update the email body using ms graph api.
I believe there exists an indirect way.