question

DavidMeusharCPIL-8387 avatar image
0 Votes"
DavidMeusharCPIL-8387 asked MayankBargali-MSFT answered

Manual trigger azure logic app sample not working.

Tried to load a file with azure logic app custom trigger from that example:
https://docs.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
image.png (69.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

Hi @DavidMeusharCPIL-8387

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.