I have a Logic App that watches a mail box and creates service tickets based on the content of those emails. They can create tickets this way or reply to them to update the ticket. The issue is with the reply. As I'm sure you know, in an email chain, the latest message has a copy of all the previous messages in the chain. Adding all this content on the comment of a ticket results in a bunch of duplication/visual clutter. So the question:
Is there a way to get only the most recent reply's text/content from a message? I was digging around the Microsoft Graph API but haven't had much luck identifying how to get this. In lieu of being able to do it via api I was going to just look for copied text in the message html and ignore it, but that seems like the way we'd do it if it was 1990.
Anyway, any help in this regard is much appreciated. Ideally it'd be done with Microsoft Graph because we're a mostly Microsoft stack here but any method is valid.
Thanks,
~Josh