Help to use array correctly

Hello,
I have created a scenario consisting of a Webhook, a “Parse JSON” and an application created by me to send SMS messages using my own API.
My problem is that I have an array where the recipient phone numbers should go, but even if it includes more than one number, only one (the first) is always used.

image

This is the body that I sent to the webhook from postman:

1.Body_PostMan

When I run it, it works correctly, but it only sends the message to the first number entered.
Both in the input and in the output, the 2 numbers appear:

In the input of the application that I created, only one number is shown:

Ouput_SendSMS

This is communication tab of mi app:

Communication_SendSMS

And Mappable parameters:

[
  {
    "name": "sms",
    "type": "collection",
    "spec": [
      {
        "name": "user",
        "label": "Usuario",
        "type": "text",
        "required": true
      },
      {
        "name": "password",
        "label": "Contraseña",
        "type": "text",
        "required": true
      },
      {
        "name": "txt",
        "label": "Texto del mensaje",
        "type": "text",
        "required": true
      },
      {
        "name": "dst",
        "label": "Destinatarios",
        "type": "collection",
        "required": true,
        "spec": [
          {
            "name": "num",
            "spec": {
              "label": "Número",
              "type": "text"
            },
            "type": "array",
            "label": "Números"
          }
        ]
      },
      {
        "name": "src",
        "label": "Remitente",
        "help": "El remitente puede ser numérico (limitado a 15 caracteres) o alfanumérico (limitado a 11 caracteres)",
        "type": "text"
      },
      {
        "name": "data_coding",
        "label": "Codificación de datos",
        "help": "Los únicos dos valores permitidos son: texto (valor predeterminado) y Unicode",
        "type": "text"
      },
      {
        "name": "delivery_receipt",
        "label": "Acuse de recibo del SMS",
        "help": "Indique la dirección de correo electrónico destinatario del acuse de recibo",
        "type": "text"
      },
      {
        "name": "allow_answer",
        "label": "Permitir respuesta",
        "type": "text"
      },
      {
        "name": "user_id",
        "label": "Id del mensaje",
        "help": "Permite al usuario asignar un número de identificación único para cada mensaje y verificar el estado del mensaje. El contenido de este elemento debe ser una cadena alfanumérica",
        "type": "text"
      },
      {
        "name": "schedule",
        "label": "Progamar envio",
        "help": "Permite programar la fecha y hora específica en la que se debe enviar el mensaje. El formato de fecha debe ser AAAAMMDDhhmm[+-]ZZzz. ZZzz es la zona horaria. Ej: 201612011530-0100",
        "type": "text"
      }
    ],
    "label": "Sms",
    "visible": "false"
  }
]

Hi @jcandel

If you iterate through the array instead of directly mapping it, you’ll be able to access each value individually. This approach allows you to retrieve all the values effectively.

Iterate with the data as follows:

The output will be values as different bundles.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
| Book Live Implementation
Visit us here
Youtube Channel

Ok. Thank you so much