cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
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 
2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Creating custom connection

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

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.
Highlighted
Anonymous
Not applicable

Re: Creating custom connection

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.

 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,374)