
My actual response from apis is
{
"restrictions":
"apple",
"banana",
"orange"
]
}
My actual response from apis is
{
"restrictions":
"apple",
"banana",
"orange"
]
}
{
"$type": "System.String[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"$values": ["apple","banana","orange"]
}
This is response
The REST endpoint may return an object like in this case, instead of rows and columns. It looks like it is an array of strings.
You can use the String System Types > Deserialize, Deserialize Array or Deserialize Typed Array (depending on the situation) to return it as rows/columns instead.
https://help.nintex.com/en-US/k2cloud/userguide/current/Content/SBrokers/SB-Serialization.htm
It is also possible to chain the Service method in a single SmartObject method.
I tried it’s not working
"/TestStringArray": {
"get": {
"summary": "Get String Restrictions Array",
"description": "Returns the restrictions array made of strings.",
"operationId": "getTestStringArray",
"responses": {
"200": {
"description": "A string array response",
"schema": {
"$ref": "#/definitions/TestStringArrayResponse"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
},
"TestStringArrayResponse": {
"type": "object",
"properties": {
"restrictions": {
"type": "array",
"items": {
"type": "string",
"example": "apple"
}
}
}
You will also want the SmartObject method to be a List type, and not a Read type; if it is only returning 1 row.
WHEN I USED SYSTEM Object Deserialize Array type array
Can some-one help what is going on
Is your SmartObject method that contains the chained Service Object methods, of the Type List?
Yes
Response is :
when I add
Continue …
WHEN I USED SYSTEM Object Deserialize Array type array
response is
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.