cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BenAffleck
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
renatoromao
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 (+2.650 students) : English | Português

View solution in original post

1 REPLY 1
renatoromao
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 (+2.650 students) : English | Português

View solution in original post

Helpful resources

Announcements
V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

PVA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,227)