Array format for Switch Tool

I am trying to use the Switch Tool and struggling to get it to work with an Array.

If I pass the arguments NOT using the Map option, it works:


Screenshot 2024-06-05 at 10.55.06

However, if I pass an array using the Map option, despite it looking like it is identical in Inputs, it does not work.

Screenshot 2024-06-05 at 11.07.42
Screenshot 2024-06-05 at 10.57.48

What am I missing?

Welcome to the Make community!

1. 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)

2. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules 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-input-bundle.txt (12.3 KB)
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:

    ```
    input/output 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.

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

samliewrequest private consultation

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

1 Like

Output Bundle.txt (39 Bytes)
Input Bundle.txt (1.2 KB)
blueprint.json (13.0 KB)

Managed to figure it out, posting here for others.

I had the fields capitalsied in my version of the array and they need to be all lowercase.

It doesn’t show in the screenshots, but becomes visible in the bundle export.

3 Likes