You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to print array of values as text format using the iterator variable in ODA?

Received Response
7
Views
1
Comments
edited Oct 25, 2019 1:11PM in API Management 1 comment

Summary

I would like to print the array of values from custom component in Oracle chatbot

Content

Below YAML code to print the list of values in the array from a custom component using the user interface component "System.CommonResponse"

  PrintExp:
    component: "System.CommonResponse"
    properties:
      processUserMessage: false
      keepTurn: false
      nlpResultVariable: "iResult"      
      metadata: 
        responseItems:         
        - type: "text"  
          text: "Expense Details "
          actions:
          - label: "${Expensedet.ExpenseName}"
            type: "postback"
            payload:
              action: " "
            iteratorVariable: "Expensedet"  
    transitions: 
       return: "done" 

Here I would like to print each link as a text format. Could anyone please help with this? Appreciate if anyone could help us here

 

 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!