Array of objects expected in parameter 'item'. Google Calendar Get Free/Busy

Hi Everyone,

I get the following error when trying to use an array from the array aggregator, trying to get Free/Busy data of multiple calendars on our workspace.

BundleValidationError

Validation failed for 1 parameter(s).

  • Array of objects expected in parameter ‘item’.

No matter what I try, I keep getting that error, and it is necessary to map the calendars because we never know which are checked when the scenario runs.

I am using the Create an Event module too, and the same array as input for the Attendees works just fine:

I’m clearly missing something here, but can’t figure out what.

If anyone has experience with mapping the “Calendars” input in the Get Free/Busy module I’d love to get your input on this!

Thanks in advance!

What does 28.array contain?

For further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

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.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

Join the unofficial Make Discord server to chat with us!

1 Like

Hi @samliew ! Thanks for picking this up.

28.array contains email addresses, can be one or ten addresses in an array.

I have attached the screenshot of the module with all of its fields, but here it is again:

Attached here is the Blueprint of the scenario:
blueprint (2).json (132.4 KB)

The main area of interest should be starting “id”: 14, and this is the flow from there onwards:

  1. Execute GraphQL from monday, getting user ID’s in order to get their email addresses
  2. Iterator to iterate through all the found emails, excluding other information such as names and addresses.
  3. Array Aggregator, to aggregate the email addresses into an array.
  4. Google Calendar "Get Free/Busy Information:
    input: Minimum Time, date format
    Input: Maximum Time, date format
    Input: Calendars, array, expecting an array of objects.

Output bundles, anonymized for privacy reasons:
Bundle.txt (20.2 KB)

It is worth nothing that when I don’t map the Calendars field, and use an item.s from the dropdown list, the module works as expected:

Any help is welcome.
Thank you!

Thanks for providing the scenario blueprint.

I can see now that you are aggregating just the email property of each Iterated user.

So, what you need to do to map into the Google Calendar “Attendees” field, is to select the “Target Structure Type” field.

Then, you will be able to map the email into the email field.

Screenshot_20240704_155336

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

2 Likes