Brakets around variable values [ ]

Hi,

I’m kind of stuck currently.

I try to generate google slides document out of a template wit variable values marked with {{ }}.

The data source is airtable where I have stored customer data. After some hick ups it works now.

One issue still persists: I take the values out of airtable and define them as variables. After that I use the “replace text” module of google slides.

module 1 - airtable - output

[
    {
        "contract_id": 9,
        "start_date": "2024-04-27",
        "end_date": "2024-05-15",
        "mileage_allowance(permonth)": 1000,
        "deductible": "1000",
        "contract_status": "generate_contract",
        "minimum_term": 2,
        "total_driven_mileage": "not ended yet",
        "price_extramileage": 0.15,
        "monthly_fee": 99,
        "car_id": [
            "reciWgIsQe5I8nXCu"
        ],
        "license_plate (from car_id)": [
            "B-TS1234E"
        ],
        "VIN (from car_id)": [
            "FHSM4854IFR4594F3"
        ],
        "car_model (from car_id)": [
            "Test Model"
        ],
        "car_brand (from car_id)": [
            "Test brand"
        ],
        "# (from car_id)": [
            1274
        ],
        "deposit": 0,
        "customer": [
            "recNXzodNyajWPVqT"
        ],
        "Country (from customer)": [
            "DE"
        ],
        "City (from customer)": [
            "München"
        ],
        "ZIP (from customer)": [
            "80796"
        ],
        "Address_line_1 (from customer)": [
            "Teststr. 3"
        ],
        "birthplace (from customer)": [
            "Zurich"
        ],
        "birthdate (from customer)": [
            "1980-12-01"
        ],
        "phone (from customer)": [
            "+4912345678910"
        ],
        "language (from customer)": [
            "de-DE"
        ],
        "email (from customer)": [
            "test.mail@gmail.com"
        ],
        "Name (from customer)": [
            "Test Mustermann"
        ],
        "last_status_change": "2024-04-26T08:54:55.000Z",
        "payment_type": "Kreditkarte",
        "record_id": "recRl46YLFpSd0qde",
        "driver": [
            "recS4s7cnueCsqHlH"
        ],
        "Zweitfahrer erwünscht? (from driver)": [
            null
        ],
        "Verifizierungsstatus (from driver)": [
            "accepted"
        ],
        "Führerscheinnummer (from driver)": [
            "A78378934B3"
        ],
        "Ablaufdatum / Ausstellungsdatum (from driver)": [
            "2022-01-01"
        ],
        "email (from driver)": [
            "test@test.de"
        ],
        "Name (from driver)": [
            "Test Driver"
        ],
        "driver_license_id (from driver)": [
            21
        ],
        "setup_fee": 0,
        "id": "recRl46YLFpSd0qde",
        "createdTime": "2024-04-26T08:46:25.000Z"
    }
]

module 2 - set variables - input


[
    {
        "scope": "roundtrip",
        "variables": [
            {
                "name": "customer_name",
                "value": "[Test Mustermann]"
            },
            {
                "name": "address",
                "value": "[Teststr. 3]\n[80796]\n[München]"
            },
            {
                "name": "birthdate",
                "value": "[1980-12-01]"
            },
            {
                "name": "birthplace",
                "value": "[Zurich]"
            },
            {
                "name": "payment_type",
                "value": "Kreditkarte"
            },
            {
                "name": "license_plate",
                "value": "[B-TS1234E]"
            },
            {
                "name": "vin",
                "value": "[FHSM4854IFR4594F3]"
            },
            {
                "name": "start_date",
                "value": "27.04.2024"
            },
            {
                "name": "end_date",
                "value": "15.05.2024"
            },
            {
                "name": "signature_date",
                "value": "26.04.2024"
            },
            {
                "name": "deposit",
                "value": "0"
            },
            {
                "name": "deductible",
                "value": "1000"
            },
            {
                "name": "extmileage",
                "value": "0.15"
            },
            {
                "name": "included_mileage",
                "value": "1000"
            },
            {
                "name": "car",
                "value": "[Test brand] [Test Model]"
            },
            {
                "name": "car_color",
                "value": "weiss"
            },
            {
                "name": "setup_fee",
                "value": 0
            }
        ]
    }
]

module 2 - set variables - output

[
    {
        "customer_name": "[Test Mustermann]",
        "address": "[Teststr. 3]\n[80796]\n[München]",
        "birthdate": "[1980-12-01]",
        "birthplace": "[Zurich]",
        "payment_type": "Kreditkarte",
        "license_plate": "[B-TS1234E]",
        "vin": "[FHSM4854IFR4594F3]",
        "start_date": "27.04.2024",
        "end_date": "15.05.2024",
        "signature_date": "26.04.2024",
        "deposit": "0",
        "deductible": "1000",
        "extmileage": "0.15",
        "included_mileage": "1000",
        "car": "[Test brand] [Test Model]",
        "car_color": "weiss",
        "setup_fee": 0
    }
]

Some of the values are printed with brakets like following:
image

The output of the airtable modul is this:

image

Some other values are printed correctly.

What is causing those brakets? I could work now with transforming the text but I rather want to solve the root cause to solve it.

blueprint (2).json (106.1 KB)

Welcome to the Make community!

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, 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!

1 Like