Business WA mapping array object not working

I keep getting this error when I try to manually map the ‘sections’ parameter of the Whatsapp Business Cloud Send Message module


I tried many variations of the following, which is copied straight from the WA api docs:

"sections": [
        {
          "title": "SECTION_1_TITLE",
          "rows": [
            {
              "id": "SECTION_1_ROW_1_ID",
              "title": "SECTION_1_ROW_1_TITLE",
              "description": "SECTION_1_ROW_1_DESCRIPTION"
            },
            {
              "id": "SECTION_1_ROW_2_ID",
              "title": "SECTION_1_ROW_2_TITLE",
              "description": "SECTION_1_ROW_2_DESCRIPTION"
            }
          ]
        },
        {
          "title": "SECTION_2_TITLE",
          "rows": [
            {
              "id": "SECTION_2_ROW_1_ID",
              "title": "SECTION_2_ROW_1_TITLE",
              "description": "SECTION_2_ROW_1_DESCRIPTION"
            },
            {
              "id": "SECTION_2_ROW_2_ID",
              "title": "SECTION_2_ROW_2_TITLE",
              "description": "SECTION_2_ROW_2_DESCRIPTION"
            }
          ]
        }
      ]

API docs here:

(scroll down a little bit till you see “List Messages”)


I can’t seem to figure out what I’m doing wrong.

Solved it by using the array aggregator module as I needed it for my automation anyway, perhaps that’s the solution as you would use the normal functions if you weren’t trying to map something dynamically.

1 Like

Hello there @Marcel1 :wave:

Great job figuring this out on your own! We all truly appreciate that you decided to share the solution with the community, that’s super valuable :pray:

1 Like