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 / Power Automate - Call ...
Power Automate
Unanswered

Power Automate - Call child flow with custom value dynamically

(2) ShareShare
ReportReport
Posted on by 58

Hi All,

 

I have a requirement to call child flow dynamically based on workflow id .

 

I have more than 50 child flows and these child flows need to be called from a generic parent flow based on some values.

I have the flow names and the workflow id in a table and I need to call the child flows based on passing that id in the custom value.

 

Thanks in Advance

Santo

Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at

    Have you tried populating the Child Flow field using the Enter a custom value option?

    David_MA_0-1713811704470.png

    If not, I would try that to see if it works. I haven't found a use case for that option, so this isn't something I have tried. If I need to call a flow, I choose it from the menu.

  • santoGD Profile Picture
    58 on at

    Hi @David_MA 

     

    Thanks for the update.

     

    I have tried using the custom value option but it is showing error while saving the flow.

    santoGD_1-1713815980741.png

    The output is the workflow id from the process table.

     

    Please help if there is any way to call it via custom option.

     

    Thanks

    Santo

  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at

    A "Cusom value" has to be the id of the child flow.

     

    There is no way to determine at runtime which flow should be executed within a "Run a child flow".

    Seems like you need to add a lot of conditions like this:

    Chriddle_0-1713867282957.png

    ... or find a different approach for your problem.

  • Spearruleina Profile Picture
    36 on at

    I feel moderately disappointed to find this out, as i do not see the use in having what Power Automate calls a 'Custom value' which essentially remains hard-coded, literal and fixed, only more inscrutable (as a GUID) than a text name selected from a dropdown.

  • Spearruleina Profile Picture
    36 on at

    I guess this setup at least saves you on the body of the input parameters.  You could at least dynamically define that one time, up front... (and then boom, giant switch statement! ; )

  • Spearruleina Profile Picture
    36 on at

    Oops, not even that proves correct.  As soon as you enter specific workflow id, it still generates the specific schema for that workflow.  You can't get dynamic input parameters as just "body": <json> either...  
    Why, then, the 'Enter custom value' at all?  No dynamic capacity, only an unreadable GUID instead of a text name...
    A tease!  Maybe the next release? : )

  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at

    You can create something like dynamic input parameters:

    1. The child flow need one text input
    2. The parent flow needs to create an object with the parameters that is passed to the child via string(obj)
    3. The child uses json(objString) to convert it back into an object.

     

  • Spearruleina Profile Picture
    36 on at

    True, i have used this technique sometimes to group related, nested sets of parameters to cut down on the count...

    But this forces you to architect all the callees in a generic manner.  Which i guess you would do anyway if attempting to implement dynamic invocation? : )  It would still be nice if the collapse of the info could happen only on the dynamic caller, because without that, you may as well spell out the parameters on both ends anyway, for clarity, and since you can't actually dynamically call.

  • AJ-29080028-0 Profile Picture
    7 on at
    Hi there,
     
    I have the same requirement and so far have not found a solution.   Passing a workflow ID to the custom option in the Child Flow action results in an error where the flow cannot be found.   Pretty disappointed with how this product seems to hang together.  Coming from a coding background it's really poor to have so many constraints applied when they could be easily fixed.   Referencing things by GUID vs common name, having to prefix items workqueues(xxxxx) etc ... all a bit unfinished in my humble opinion.
     
    Sorry to say that I found the issue with child flow names not being dynamic after I'd constructed some basic framework to handle queue items which I'd assumed I could dynamically redirect without the need for a giant switch block.   Sigh ... I hate this.
     
    Regards,
    Andrew
  • bengo83 Profile Picture
    159 on at
    Hi All
     
    Maybe i found a solution...
     
    Instead of using the "run a child flow" action you can use an HTTP trigger. And then you can trigger the child flow with the HTTP request in the parent flow.
     
    Best regards
     
    Beny

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard