web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating custom connec...
Power Automate
Unanswered

Creating custom connection

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

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 
Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    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 Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard