Manual trigger azure logic app sample not working.

Anonymous
2021-05-11T11:03:53.303+00:00

Tried to load a file with azure logic app custom trigger from that example:
https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-actions-triggers#request-trigger

{
"manual": {
"type": "Request",
"kind": "Http",
"inputs": {
"method": "POST",
"schema": {
"type": "object",
"properties": {
"customerName": {
"type": "String"
},
"customerAddress": {
"type": "Object",
"properties": {
"streetAddress": {
"type": "string"
},
"city": {
"type": "string"
}
}
}
}
}
}
}
}

Just seems it is not working.
Can someone please provide a valid file with custom connector?
Or post an example of a custom trigger to use in custom connector

Error:

{"Code":"","Message":"PUT https://logic-apim-westeurope.management.azure-api.net/apis/a48d593c83434d29b4d8cb94083ab2df?import=true&protocols=https&protocols=http&path=apim/a48d593c83434d29b4d8cb94083ab2df&api-version=2014-02-14 failed with BadRequest, content={\"error\":{\"code\":\"ValidationError\",\"message\":\"One or more fields contain incorrect values:\",\"details\":[{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): Property 'manual' has not been defined and the schema does not allow additional properties. Path 'manual', line 22, position 11.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json).\"}]}}","Target":null,"Details":[],"Innererror":null}

95594-image.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,986 Reputation points Moderator
    2021-05-12T06:44:44.483+00:00

    Hi @Anonymous

    Welcome to Microsoft Q&A! Thanks for posting the question.

    You need to provide a valid OpenAPI file. You can refer to this document for the OpenAPI specification.
    You can go through this learning module to call an API from a Logic Apps workflow using a custom connector. As per the error message "manual" that you have defined is not a valid with the properties.

    You can refer to Create a custom connector from an OpenAPI defination to learn how to create the custom connector. In the same article, there is open API schema definition that describes the example API.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.