cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
StaffanNelemans
Level: Powered On

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
Community Support Team
Community Support Team

Re: Creating custom connection

Hi @StaffanNelemans,

 

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
StaffanNelemans
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 308 members 5,551 guests
Please welcome our newest community members: