cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BkingstonGTI
Frequent Visitor

Interact with Desktop flow from a Cloud flow

Scheduling a desktop flow via a cloud flow, however at the beginning of my desktop flow there are choices that do different things. 

I would preferably like to be able set the value of a variable from the cloud flow but I'm not sure if that's possible as the value of said variable decides what route to go via IF statements.  

 

Thanks!

7 REPLIES 7
VJR
Super User
Super User

Hi @BkingstonGTI 

In the Desktop Flow take an Input variable.

This variable will show up in the Cloud flow when you use the "Run a Desktop Flow" connector.

Pass the value of that variable from the Cloud Flow

Read that variable value in the Desktop flow and navigate your If statements accordingly.

I've basically never used cloud flows, not sure how to make a variable from the desktop flow to appear in the cloud flow. What connectors or whatever id need to use to pull data from my desktop flow.

 

Thanks

VJR
Super User
Super User

These free Microsoft Learn tutorials will help you on how to add input variables and use between Desktop and Cloud flows.

https://docs.microsoft.com/en-us/learn/modules/input-parameters/

 

Connect a cloud flow to desktop flows in Power Automate for desktop

https://docs.microsoft.com/en-us/learn/modules/gateway-desktop-flow/

 

 

 

VJR
Super User
Super User

Not super resourceful, i understand everything in there, i just need to know how to set a variable within a cloud flow that my desktop flow can read. 

VJR
Super User
Super User

- Add an Input variable in Desktop Flow as shown here

https://docs.microsoft.com/en-us/learn/modules/input-parameters/3-define-input-variable

 

- Create your Cloud Flow in www.flow.microsoft.com

https://docs.microsoft.com/en-us/learn/modules/gateway-desktop-flow/4-cloud-flow

 

- The Input variables that you added in Desktop Flow shows up in the Cloud Flow

https://docs.microsoft.com/en-us/learn/modules/gateway-desktop-flow/5-cloud-desktop

 

As an example, the red marked ones are the Input parameters created in Desktop Flows but showing up on Cloud Flows

 

Instead of hard coded values here, you can also use variables from the Dynamic Content available in Cloud Flows.

 

VJR_2-1651201632386.png

 

 

- The above 3 variables will be available in your Desktop flows

and this is the one you need to read and navigate in your If statements.

 

 

In order to have a connection between Cloud and Desktop Flows there needs to be a Gateway setup

Create Gateway:

https://docs.microsoft.com/en-us/learn/modules/gateway-desktop-flow/3-gateway-connection

 

 

 

All of these are taken from the links that I shared with you earlier.

So which is the part that is not clear?

 

--------------------------------------------------------------------------------------------------------------------

Alternatively,

This link has everything explained.

var1 is the variable created in Desktop flows -> Then value passed from Cloud flows 

 

 

Anonymous
Not applicable

This should do what you're looking for. Basically you want to start your desktop flow from a cloud trigger. You can add user inputs as part of starting the flow. You'll have corresponding input variables in your desktop flow. When calling your desktop flow to start, you can assign your inputs to the desktop variables. The desktop flow will then be able to use these during its automation. 

(ignore my error message)
jarnolky_0-1651413610613.png

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

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

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,983)