I have created a custom connector with an action returning a list of objects. I want to use the list for looping through the items.
But the the Problem is that I cannot get the returning list schema working in Flow. When reading in the dev tools I see the following error message with the status code 502: DynamicSchemaResponseNotSchema.
This code used for the action:
/test/{documenttypeId}/search:
post:
description: Search
summary: Search
operationId: Search
parameters:
- name: documenttypeId
in: path
required: true
type: string
x-ms-url-encoding: single
x-ms-summary: Document Type
x-ms-dynamic-values: {operationId: GetTypes, value-path: dtId,
value-title: name}
- name: body
in: body
required: true
schema: {$ref: '#/definitions/UpdateModel'}
responses:
'200':
description: OK
schema:
type: object
x-ms-dynamic-schema:
operationId: EditSchemaList
parameters:
documenttypeId: {parameter: documenttypeId}
value-path: properties #I' ve also tried with "values" here
/test/{documenttypeId}/editschemalist:
get:
description: List Schema
summary: List Schema
operationId: EditSchemaList
parameters:
- {name: documenttypeId, in: path, required: true, type: string}
responses:
'200':
description: OK
schema: {type: object}
This is the schema returned by the server:
{
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "object",
"required": [
"24",
"27",
"28",
"31",
"32",
"123",
"documentName"
],
"title": "Example",
"properties": {
"documentName": {
"type": "string",
"description": "documentName",
"x-ms-summary": "Dateiname"
},
"documentGuid": {
"type": "string",
"description": "",
"x-ms-summary": "ID"
},
"webUrl": {
"type": "string",
"description": "webUrl",
"x-ms-summary": "Web Url"
},
"tagLastEditetBy": {
"type": "string",
"description": "",
"x-ms-summary": "TE"
},
"24": {
"type": "string",
"description": "",
"x-ms-summary": "LN"
},
"25": {
"type": "number",
"description": "",
"x-ms-summary": "netto"
},
"27": {
"type": "string",
"format": "date-time",
"description": "",
"x-ms-summary": "RD"
},
"28": {
"type": "number",
"description": "",
"x-ms-summary": "brutto"
},
"31": {
"type": "string",
"description": "",
"x-ms-summary": "RN"
},
"32": {
"type": "string",
"description": "",
"x-ms-summary": "Währung"
},
"123": {
"type": "string",
"description": "",
"x-ms-summary": "RM"
}
}
}
}
}
}
does someone have an idea what's wrong please? Thank you in advance!