We are trying to create a custom connection using the following json example:
{
"messages": {
"authentication": {
"producttoken": "00000000-0000-0000-0000-000000000000"
},
"msg": [ {
"from": "SenderName",
"to": [{
"number": "00447911123456"
}],
"body": {
"content": "Test message"
}
}
]
}
}
I have three questions about this:
Hi @Anonymous,
I think it is better to define the authentication in the Request Header, the reason why the action need to be specified with the Authentication is that the authentication is defined within the messages body. Would it be available to remove the authentication part from the messages?
For me, currently I have no idea to get the token from the connection.
For question 2, the definition shows the To field is an array, could you please explain a bit for " This is currently not working when we generate the swagger file from the UI"?
Through which UI and what is not working?
The security is defined through the File you used to create the connector, you may take a try to update your swagger file or rebuild the PostMan collection to define the security again.
Regards,
Michael
Hi @v-micsh-msft ,
Thanks for the response.
More explaination for question 2: If you edit a custom connector inside flow.microsoft.com you can use "import from sample" at the definition tab of the wizard. If you then use an array with one value, then the value in the array is not pickedup as an input value for your flow action. How should you update the swagger file, so that this value is picked up as an parameter/input value inside the flow action.
For question 3: If you edit a custom connector inside flow.microsoft.com you can change the security definition inside the security tab of the wizard. But if you change the dropdown value, this is not saved and will be resetted to the original value. This value can now only be changed via an import file action. If it is not changable via the UI, don't show any edit function.
This edit UI has more flaws, also if you create a new conenction, it is not selected after you have created it, you need to refresh the dropdown and manually change the dropdown value to the newly created connection. This is also not very user friendly.