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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / MS Flow Web API cannot...
Power Automate
Unanswered

MS Flow Web API cannot create a Flow with connections

(0) ShareShare
ReportReport
Posted on by 21

Hi, 

 

I am currently looking at Microsoft Flow Web API and was able to programmtically create a Flow via https://xxxx.crm.dynamics.com/api/data/v9.1/workflows endpoint by using a exported Flow JSON definition. However, the created Flow doesn't include any connection information and requires people to manually select a connection. I am just wondering since the purpose of Flow Web API is to allow people to import/export a Flow programmatically, it's kindly useless if there is not way to referenece or create connection programmtically. Most of Flow include one or multiple connections.

Can anyone point out how to: 

  • associate a existing connection to created Flow programmtically? or
  • create a new connection?

Thanks

 

Frank

Categories:
I have the same question (0)
  • KW-22091818-0 Profile Picture
    on at

    Hi Frank,

     

    You can patch the clientData of the flow with the names of the connections. You'll need to provide the connectionName, source, and id properties. See this page for more details.

     

    Let us know if you still are having trouble.

  • Swaroop Deshmukh Profile Picture
    11 on at

    Hi Kewaiss,

     

    I am trying to update a flow once it is imported to the Target environment with the Connection present in that environment. Trying to patch clientData with the connection id, but getting a bad request issue while doing so.

     

    Kindly suggest how the clientData value should look for an update of a flow? We need to update the flow in the Target environment programatically to avoid the users having to do it for each flow (multiple connections) after every deployment.

     

    Thanks,

    Swaroop

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard