Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating custom connection

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:

  1. Is it possible to get the producttoken from the api-key of the flow connection, else we have to specify the producttoken everytime we are using the flow action.
  2. How can we use the to-array as one input value. This is currently not working when we generate the swagger file from the UI.
  3. When we change the security in the UI, it jumps back to the old values. So you're not able to update the security settings 
Community Support
Community Support

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.




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

Hi @v-micsh-msft ,


Thanks for the response.


More explaination for question 2: If you edit a custom connector inside 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 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.


Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Kudoed Authors
Users online (6,089)