My Oracle Support Banner

CommonResponse in OMCE ODA chatbot returns only 3 values (Doc ID 2510203.1)

Last updated on NOVEMBER 29, 2019

Applies to:

Mobile Cloud Enterprise - Version 17.4.1 and later
Information in this document applies to any platform.

Symptoms

We are using the CommonResponse to show a list of values stored in an array. Array in use:

  "provincias": [
    {
      "valor": "1",
      "nombre": "San José"
    },
    {
      "valor": "2",
      "nombre": "Alajuela"
    },
    {
      "valor": "3",
      "nombre": "Cartago"
    },
    {
      "valor": "4",
      "nombre": "Heredia"
    },
    {
      "valor": "5",
      "nombre": "Guanacaste"
    },
    {
      "valor": "6",
      "nombre": "Puntarenas"
    },
    {
      "valor": "7",
      "nombre": "Limón"
    }
  ],

 

The commonResponse codes:

  showProvincias:
  component: "System.CommonResponse"
  properties:
  processUserMessage: true
  variable: "provincia"
  metadata:
  responseItems:
  - type: "cards"
  cardLayout: "horizontal"
  cards:
  - title: "Seleccione la provincia:"
  actions:
  - label: "${provincias.nombre}"
  iteratorVariable: "provincias"
  type: "postback"
  payload:
  action: "upgrade"
  variables:
  provincia: "${provincias.valor}"
  provinciaMostrar: "${provincias.nombre}"
  transitions: {}

 

This works as expected using the Test feature. But when we use it in the website, it only shows 3 values. We also tried testing the WebChannel using localhost but the problem is the same.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.