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 / Copilot Studio / Variable initialization
Copilot Studio
Answered

Variable initialization

(0) ShareShare
ReportReport
Posted on by 329

Hi Experts

 

This is tricky one. I have a question which captures a boolean answer from the user . In Yes branch user presented with a question to capture a variable. After that both branches join, where in I'm planning to send the values to Flow action. As I'm sending my bool value + other captured value (which is not available when it is No branch) to flow, the bot jumping suddenly to Yes branch and asking that one question and coming out from branch to pass the information to Flow.

Is this expected behavior? Or am I missing any thing? I guess it is because there is no concept of initialize variable explicitly like how in flow. Am I right? Any suggestions please?

 

Thanks

Srikanth

Categories:
I have the same question (0)
  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @ansrikanth 

     

    Could you please share a screen capture of your BOT, so i can understand you scenario better and will try to help you.

     

    Regards,

     

     . 

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @ansrikanth ,

     

    Yes, it's normal because you cannot send empty variables or parameters to Power Automate.

    If you have a condition and one of this get another variable, I recommend that you create one workflow per condition, like one flow that sends as input only Boolean option and another workflow that receives the Boolean option + additional variable.

  • ansrikanth Profile Picture
    329 on at

    Thanks for that @renatoromao . Just hypothetically, if I have 10 conditional branches with 10 different type of variables (for ex: different loan amount types we are expecting from user like Mortgage loan, personal loan, vehical loan, x loan, y ,z  etc etc), I have to create 10 different flows? Irony is the logic is same across all of these flows and that is for ex pushing the information in to CDS.

     

    That's not sounding like an elegant approach to me. Do you agree?

     

    @DeepakS  here is the screenshot

     

    in the above screenshot, if I use varOtherLoanAmount any where further down and the flow will jump back and asks the question "how much you will be paying".  Hope you got the pain point...

     

    Thanks 

    -Srikanth

  • ansrikanth Profile Picture
    329 on at

    Screenshot - for some reason previous post ignored my screenshot..Annotation 2020-06-06 235234.png

  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @ansrikanth ,

     

    Yes, unfortunately.

    But if you need to do a workaround, you can create a generic workflow that receives a unique parameter and inside your workflow, you manage which actions the Power Automate needs to do it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 455

#2
Vish WR Profile Picture

Vish WR 273

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 202 Super User 2026 Season 1

Last 30 days Overall leaderboard