Array comparison of emails from Notion

hello everyone, i am trying to make a array comparaison between a result of a notion module which i would want to compare to a email adress i am getting in a previous module, i have attached a screenshot of the scenario, i tried first to use the condition the array but it doesn’t seem to work for now, the final goal would be to get one of multiple result from the notion module then compare it to a single email adresse and if there is a match then update the notion content page that matched, thanks for your help !

Hello, what is the filter currently in the scenario?

1 Like

Hey actually it’s this filter :

What input is in the Iterator (second module)?

1 Like

Welcome to the Make community!

Please provide the output bundles of the modules [1] and [2] by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

1 Like

It seems you have an array of emails. But you are checking once only if the email contains the particular email.

Please iterate the array of emails as seems you are already doing and map the value from iterator instead of mapping from notion module in the filter. Then it will check each email with the one you want to match.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support | Book Live Implementation
Visit us here
Youtube Channel

1 Like

i have this input for the iterator :


[
    {
        "array": [
            {
                "type": "text",
                "text": {
                    "content": "perrine_solbes@yahoo.fr",
                    "link": null
                },
                "annotations": {
                    "bold": false,
                    "italic": false,
                    "strikethrough": false,
                    "underline": false,
                    "code": false,
                    "color": "default"
                },
                "plain_text": "perrine_solbes@yahoo.fr",
                "href": null
            }
        ]
    }
]

@MEA

Please check the below loom update.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support | Book Live Implementation
Visit us here
Youtube Channel

1 Like