Email to Comment - Remove replies

What are you trying to achieve?

I am using Make to grab new emails, and add them to comments into another application.

However, it’s including ALL of the email, including all of the previous replies. I know when you grab the outlook email BODY, it just grabs what’s there which includes all of the HTML and previous replies.

Anyway to get Make to grab the full email, then edit it so it cuts off all previous replies?
I could make it find text in the BODY that says “FROM:”, because that would signify the next email in the thread. But how would I then remove all text after, and including, “FROM:” from the outlook BODY?

Thanks,

Welcome to the Make community!

When reaching out for assistance with extracting text, it would be super helpful if you could share the actual text you’re trying to match. Screenshots of text can be a bit tricky, so if you could copy and paste the text directly here, that would be awesome! It ensures we can run it against test patterns effectively. If there’s any sensitive info, feel free to change it to something fictional yet still valid by keeping the format intact.

Providing clear text examples saves time on both ends and helps us give you the best possible solution. Without proper examples, we might end up playing a guessing game, and nobody wants that as it is a waste of time! You are more likely to get a correct answer faster. So, help us help you by sharing those text snippets.

Please provide the output bundles of each of the relevant modules (email) by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.