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 / Passing dynamic argume...
Power Automate
Suggested Answer

Passing dynamic arguments between flows (strictly in PAD)

(1) ShareShare
ReportReport
Posted on by 2
I am trying to convert an automation built with UiPath into Power Automate Desktop. In my UiPath automation, I have a workflow called "Read_Data" that receives and reads an Excel file and outputs a data table. So my "in" argument would be a string file path, and my "out" argument would be a data table from the bot reading the Excel file. Each time I call "Read_Data," I can pass in a different file path and receive a new out argument that I can then set to a new variable.
 
I am trying to do the same thing in PAD (and I can ONLY use PAD - not any cloud flows), but can't figure out how to pass dynamic variables into a subflow. I understand that the variables you create in Main and in subflows can all be accessed by each other, but my issue is that I want to invoke my subflow with a different file each time, have the subflow read that file and output me a new data table that I can then assign to a variable in Main. 
 
One solution I've seen online has been to add the files to a list and call the subflow when you iterate over the list using a "for each." This half-works for me - I can add my files to a list and iterate over them, but I get stuck when I want to assign variables to the outputted data table from the subflow. 
 
Is this kind of scenario possible with only using PAD? This starts to get into more of the realm of OOP and I'm not sure if PAD was designed for that purpose. 
 
Thank you!
Angela
I have the same question (0)
  • Suggested answer
    Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at
    Hello,

    In Power Automate Desktop, unlike in UIPath, you cannot create subflow variables within separate scopes. Therefore, variables created in the main flow must also be accessible in subflows. This includes variables like file paths and output data tables that are created and passed or retrieved as outputs.

    Alternatively, you can create a separate flow specifically for reading Excel files. This flow would have an input variable for the file path and an output variable for the data table. You can then invoke this "read Excel desktop flow" from within your main flow as needed.
  • Suggested answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at
    Hey Hi,
     
    In PAD,when you create a variable in the Flow Variables,they are treated as Gloabl Variables.
     
    Global variables in PAD are accessible across all flows and their values persist until the PAD is closed. So, you can use them to pass dynamic arguments between flows.
     
    (Note:- if you got your solution you can mark as solution and gives kudos)

    Thanks & Regards
    Vishnu Reddy

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