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 / PAD default values for...
Power Automate
Unanswered

PAD default values for input variables not being initialized when PAD is triggered from cloud flow

(0) ShareShare
ReportReport
Posted on by 128

When I give default values to Power Automate Desktop variables within Power automate desktop designer, they're initialized all well if I run it just as a PAD flow but if I trigger it from a cloud flow, then they're not used and I have to [by default] feed them in manually through the cloud flow. I don't think this is a good design choice. Although I noticed that before, I spent hours again until I figured out this was the issue and that I needed to manually supply them 'again'.

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    "Default" might not be the best word in terms of design, but that is just how it is.

     

    If you want some default values set in case the input from the cloud is empty, you will have to put some Set variable actions inside an If condition.

  • Nuchem Profile Picture
    128 on at

    I know of this solution but your answer is still not addressing why this is the case? What's the logic of this design? Was it a work around some other problem? Anyway, I like answers that don't avoid answering the question directly 😉

  • Nuchem Profile Picture
    128 on at

    Whilst we're at it. I found something else confusing in relation to this topic. When I set say a default value of True to a boolean variable (not really because they're all strings, annoyingly) in PAD, I then need to treat it as 'True' (with single quotes around it => %someVariable = 'True'% ) in Conditionals and even more annoyingly, I can't use the True provided in the second operand against the variable directly..

    The usage of the '=' sign for comparison as opposed to '==' is also very undesirable. 

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Don't assume that everything in PAD makes logical sense.

     

    More data types for input and output variables will become available over the summer.

  • charles_ross_oh Profile Picture
    91 on at

    I am feeling this kind of trouble. Setting a Boolean variable in my cloud flow input panel (they call it a Yes/No selection) that calls a Desktop flow.  The boolean parm should provide a flag to the desktop flow. What a project!

     

    The desktop flow design panel with input parms recognized it as a boolean.  It let me pick a default value that is labelled False.  An english word label selection - no quotes - that looks hopeful. Great!

    But when trying to use it in an IF condition step in the Desktop flow according to the expression syntax explained elsewhere in this forum with (with %FALSE% being the supposed expression of bool false), things aren't going well.

    The cloud flow fails when calling the desktop flow with an error in the portal like "Parameter 'x' has invalid value." 

     

    The design surfaces give one the IMPRESSION that boolean values are being handed back and forth.  I get the feel that the "boolean" cloud flow parm turns into a string when used in the desktop flow and I'll have to do type conversion. It would be a great leap for mankind if the two products could talk boolean to each other. 

  • charles_ross_oh Profile Picture
    91 on at

    Just confirmed, cloud flow maybe thinks it's passing a bool down but the Input variable delivered to the desktop flow is a string "FALSE" - that gets me suspected results.  

     

    <sigh>

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    For the reasons mentioned here I always use 1 and 0 instead - makes my life easier.

    And when it comes to input variables, well, that are input variables, not defaults.

  • charles_ross_oh Profile Picture
    91 on at

    I was referring to the fact that Input variables in PAD have a default value property. 

    charles_ross_oh_0-1674229966146.png

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard