Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Problem with Custom Connector dynamic schema returning an array of objects

(0) ShareShare
ReportReport
Posted on by

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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics