String List
The value for this input datatype will be available in the session object in the following format:
Attribute Name | Datatype | Description |
meta | map | String List Meta (A) |
value | string | The String list has to be set here. Ex: "123", "Hello there!","How are you?" |
Attribute Name | Datatype | Description |
type | String | Value should be 'stringlist' |
value | String | The String list has to be set here. Ex: "123", "Hello there!","How are you?" |
Note: The maximum number of values passed in the list is 30.
Sample Code:
Copied{
"value":[
"123",
"Hello there!",
"How are you?"
],
"meta":{
"type":"stringlist",
"value":[
"123",
"Hello there!",
"How are you?"
]
}
}
Format to be returned in response object:
Copiedresponse=map();
items = List();
items.add("123");
items.add("Hello there!");
items.add("How are you?");
response.put("stringlist", items);
return response;