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

Respect optional inputs for flow actions

I'm calling a Power Automate flow from PVA with a bunch of input variables, some of them marked optional. 

 

However, I can't see how this should affect the bot logic in any way, and I wonder if it is a bug, by design or if I missed something. 

 

Here is my observation:

 

When adding the flow as an action to any dialog, I have to set all parameters of the flow, regardless if they marked optional or not.

+ there is no visual indication at all.

 

This results in Power VA jumping between topics until all variables have been collected.

 

Sample

Input parameter marked optional:

BenAffleck_0-1598422944321.png

 

The flow used in Power VA

No indication that this is optional, nor can I add the flow without setting an input variable (bug/by design?)

BenAffleck_1-1598423088369.png

 

If I leave the variable empty (not collected in any previous dialog), when invoking the flow, Power VA calls the sub dialog where the variable is defined and asks the user to provide it. This is, of course, breaking the modeled dialog flow, and I don't see any way around it. 

 

My expectation would be:

 

1) We don't need to pass any variable when the flow input field is marked optional

2) or, Power VA passes an empty value instead of calling the sub dialog and trying to collect the variable from the user

 

Please note that I'm using global variables. I haven't had the chance to see if the behavior is the same for local dialog variables. 

 

I considered to model two flows with different interfaces to work around this issue, but unfortunately, Power VA doesn't let me assign the output to the exact same variable, which makes consequent dialogs a mess with a lot of conditions. 

 

The lack of ability to set variables without user input makes many things very complex. I hope this will come as a feature soon.

 

Any advice?

 

Thanks

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Hi @BenAffleck ,

 

Unfortunately, it's not possible yet.

We already submit an idea inside the Ideas portal, to allow users to send optional inputs.

You can vote in it:  https://powerusers.microsoft.com/t5/Power-Virtual-Agents-Ideas/Allow-PVA-to-send-NULL-values-to-Powe...


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+1.000 students | 25% OFF) : https://www.udemy.com/pva-beginners

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Hi @BenAffleck ,

 

Unfortunately, it's not possible yet.

We already submit an idea inside the Ideas portal, to allow users to send optional inputs.

You can vote in it:  https://powerusers.microsoft.com/t5/Power-Virtual-Agents-Ideas/Allow-PVA-to-send-NULL-values-to-Powe...


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+1.000 students | 25% OFF) : https://www.udemy.com/pva-beginners

View solution in original post

Helpful resources

Announcements
PVA Commnity Blog

NEW Power Virtual Agents Community Blog

View articles posted by fellow community members on the Power Virtual Agents Community Blog!

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (11,707)