Getting rid of duplication when using an aggregator

Hello, I am trying to optimize this process.

First, it loads all the calendars that the user has. Subsequently, it views all events that are one hour ahead. Since the events cross between the calendars, duplication occurs. Thus, with the iterator, I seem to have a duplicate.

Is it possible to somehow filter it so that there are no events that are the same twice, or that there are no events that we have already invited our AI robot to? Thank you for your help.

Welcome to the Make community!

If you don’t want duplicates, for each event, you need to search whether that specific event exists first.

Could you provide the output bundle of your aggregator [28]?

Can you take a screenshot of items that “duplicate” each other?

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.
Screenshot_2023-10-06_141025

A.

Save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Uploading it here will look like this:

bundle.txt (12.3 KB)

B.

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

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

    ```
    input/output bundle content goes here
    ```

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

Providing the 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!

2 Likes

Thank you for help. For example this 2 bundles. Its same event, but from other user calendar.

[
    {
        "array": [
            {
                "id": "2kd8hoft461j4i5pf60p264808",
                "end": "2024-01-24T00:00:00.000Z",
                "etag": "\"3412098709110000\"",
                "kind": "calendar#event",
                "start": "2024-01-23T23:00:00.000Z",
                "status": "confirmed",
                "created": "2024-01-23T22:34:37.000Z",
                "creator": {
                    "email": "martin@birdline.sk"
                },
                "iCalUID": "2kd8hoft461j4i5pf60p264808@google.com",
                "summary": "TEST",
                "updated": "2024-01-23T22:35:54.555Z",
                "htmlLink": "https://www.google.com/calendar/event?eid=MmtkOGhvZnQ0NjFqNGk1cGY2MHAyNjQ4MDggZmlsaXBAYmlyZGxpbmUuc2s",
                "location": null,
                "sequence": 1,
                "attendees": [
                    {
                        "email": "filip@birdline.sk",
                        "self": true,
                        "responseStatus": "needsAction"
                    },
                    {
                        "email": "martin@birdline.sk",
                        "organizer": true,
                        "responseStatus": "accepted"
                    }
                ],
                "eventType": "default",
                "organizer": {
                    "email": "martin@birdline.sk"
                },
                "reminders": {
                    "useDefault": true
                },
                "recurrence": null,
                "description": null,
                "hangoutLink": "https://meet.google.com/okf-ssor-rdd",
                "__IMTINDEX__": 1,
                "transparency": null,
                "__IMTLENGTH__": 1,
                "conferenceData": {
                    "entryPoints": [
                        {
                            "entryPointType": "video",
                            "uri": "https://meet.google.com/okf-ssor-rdd",
                            "label": "meet.google.com/okf-ssor-rdd"
                        },
                        {
                            "entryPointType": "more",
                            "uri": "https://tel.meet/okf-ssor-rdd?pin=2141490067325",
                            "pin": "2141490067325"
                        },
                        {
                            "regionCode": "SK",
                            "entryPointType": "phone",
                            "uri": "tel:+421-650-400-220",
                            "label": "+421 650 400 220",
                            "pin": "2141490067325"
                        }
                    ],
                    "conferenceSolution": {
                        "key": {
                            "type": "hangoutsMeet"
                        },
                        "name": "Google Meet",
                        "iconUri": "https://fonts.gstatic.com/s/i/productlogos/meet_2020q4/v6/web-512dp/logo_meet_2020q4_color_2x_web_512dp.png"
                    },
                    "conferenceId": "okf-ssor-rdd"
                },
                "recurringEventId": null,
                "originalStartTime": null,
                "guestsCanInviteOthers": null
            }
        ],
        "__IMTAGGLENGTH__": 1
    }
]
[
    {
        "array": [
            {
                "id": "2kd8hoft461j4i5pf60p264808",
                "end": "2024-01-24T00:00:00.000Z",
                "etag": "\"3412098717536000\"",
                "kind": "calendar#event",
                "start": "2024-01-23T23:00:00.000Z",
                "status": "confirmed",
                "created": "2024-01-23T22:34:37.000Z",
                "creator": {
                    "email": "martin@birdline.sk",
                    "self": true
                },
                "iCalUID": "2kd8hoft461j4i5pf60p264808@google.com",
                "summary": "TEST",
                "updated": "2024-01-23T22:35:58.768Z",
                "htmlLink": "https://www.google.com/calendar/event?eid=MmtkOGhvZnQ0NjFqNGk1cGY2MHAyNjQ4MDggbWFydGluQGJpcmRsaW5lLnNr",
                "location": null,
                "sequence": 1,
                "attendees": [
                    {
                        "email": "filip@birdline.sk",
                        "responseStatus": "needsAction"
                    },
                    {
                        "email": "martin@birdline.sk",
                        "organizer": true,
                        "self": true,
                        "responseStatus": "accepted"
                    },
                    {
                        "email": "ahoj@birdline.sk",
                        "displayName": "Birdbot",
                        "responseStatus": "needsAction"
                    }
                ],
                "eventType": "default",
                "organizer": {
                    "email": "martin@birdline.sk",
                    "self": true
                },
                "reminders": {
                    "useDefault": true
                },
                "recurrence": null,
                "description": " - AI FIREFLIES",
                "hangoutLink": "https://meet.google.com/okf-ssor-rdd",
                "__IMTINDEX__": 1,
                "transparency": null,
                "__IMTLENGTH__": 1,
                "conferenceData": {
                    "entryPoints": [
                        {
                            "entryPointType": "video",
                            "uri": "https://meet.google.com/okf-ssor-rdd",
                            "label": "meet.google.com/okf-ssor-rdd"
                        },
                        {
                            "entryPointType": "more",
                            "uri": "https://tel.meet/okf-ssor-rdd?pin=2141490067325",
                            "pin": "2141490067325"
                        },
                        {
                            "regionCode": "SK",
                            "entryPointType": "phone",
                            "uri": "tel:+421-650-400-220",
                            "label": "+421 650 400 220",
                            "pin": "2141490067325"
                        }
                    ],
                    "conferenceSolution": {
                        "key": {
                            "type": "hangoutsMeet"
                        },
                        "name": "Google Meet",
                        "iconUri": "https://fonts.gstatic.com/s/i/productlogos/meet_2020q4/v6/web-512dp/logo_meet_2020q4_color_2x_web_512dp.png"
                    },
                    "conferenceId": "okf-ssor-rdd"
                },
                "recurringEventId": null,
                "originalStartTime": null,
                "guestsCanInviteOthers": null
            }
        ],
        "__IMTAGGLENGTH__": 1
    }
]