cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Custom connector output

Hello,

 

I have created a very basic custom connector on top of an Azure function; it works, and when I use it I get this:

inputoutput.png

The problem I have is I cannot use the value of "message", "revenueopportunity","costToFix" in a variable directly via the dynamic content as illustrated in the next picture :

 

nodynamic.png

I know that I can create a Compose JSOn and grab the values and store them in variables, but that's not user friendly for the users of my connector. What should I do to make these values avalable in the dynamic content ?

 

I have to specify that the connector has been created via the Flow Wizzard ("create custom connector "-"from blank"), I didn't create it manually.

 

Here is the response part of my swagger file:

 

custom connector.pngT

The full code of the swagger file is here:

 

{
"swagger": "2.0",
"info": {
"title": "Turbine new",
"description": "Turbine",
"version": "1.0"
},
"host": "flowazurefunctions.azurewebsites.net",
"basePath": "/api",
"schemes": [
"https"
],
"consumes": [],
"produces": [],
"paths": {
"/TurbineRepair": {
"post": {
"responses": {
"default": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "message",
"x-ms-summary": "message"
},
"revenueOpportunity": {
"type": "string",
"description": "revenueOpportunity",
"x-ms-summary": "revenueOpportunity"
},
"costToFix": {
"type": "string",
"format": "date-time",
"description": "costToFix",
"x-ms-summary": "costToFix"
}
}
},
"headers": {
"Accept": {
"description": "Accept",
"type": "string"
}
}
}
},
"summary": "Calculation summary",
"description": "Calucalation descr",
"operationId": "Caclulate",
"parameters": [
{
"name": "Accept",
"in": "header",
"required": false,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": false,
"schema": {
"type": "object",
"properties": {
"hours": {
"type": "string",
"description": "hours",
"x-ms-summary": "hours"
},
"capacity": {
"type": "string",
"description": "capacity",
"x-ms-summary": "capacity"
}
}
}
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {
"api_key": {
"type": "apiKey",
"in": "query",
"name": "code"
}
},
"security": [],
"tags": []
}
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @sergeluca,

 

If you want these values to display in the Dynamic content tab, you could consider take a try to add a "x-ms-dynamic-schema" OpenAPI extension within your swagger file. The details of the "x-ms-dynamic-schema" OpenAPI extension as below:

 

"DynamicResponseGetListSchema": {
   "type": "object",
   "x-ms-dynamic-schema": {
      "operationID": "GetListSchema",
      "parameters": {
         "listID": {
            "parameter": "listID-dynamic"
         }
      },
      "value-path": "items"
    }
}

 

More details about the "x-ms-dynamic-schema" OpenAPI extension, please check the following article:

The "x-ms-dynamic-schema" OpenAPI extension

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Hi @sergeluca,

 

If you want these values to display in the Dynamic content tab, you could consider take a try to add a "x-ms-dynamic-schema" OpenAPI extension within your swagger file. The details of the "x-ms-dynamic-schema" OpenAPI extension as below:

 

"DynamicResponseGetListSchema": {
   "type": "object",
   "x-ms-dynamic-schema": {
      "operationID": "GetListSchema",
      "parameters": {
         "listID": {
            "parameter": "listID-dynamic"
         }
      },
      "value-path": "items"
    }
}

 

More details about the "x-ms-dynamic-schema" OpenAPI extension, please check the following article:

The "x-ms-dynamic-schema" OpenAPI extension

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (11,884)