cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RemiChambard3
Advocate IV
Advocate IV

Creating and assigning a variable

I have created a Power Automate flow that creates Incidents in ServiceNow.

 

I use this flow in various topics. In the main topic, to qualify the issue and creates the Incident with all its information (description, category and subcategory). In the fallback topic of my bot, when it doesn't understand the user. In this topic I don't have all the information to pass to my flow but the PVA Designer force me to specify a variable for each parameter of my flow. I also don't want to create a separate Power Automate flow as it'll make maintenability more complex having multiple flows doing the same thing.

 

Is there anyway to set a variable without asking the user ? For exemple, setting a default value to a variable.

2 REPLIES 2
renatoromao
Super User
Super User

Hi @RemiChambard3 ,

 

Unfortunately, not yet.

We have a lot of ideas about it inside the Community, but we don't have a perspective to see this feature available yet.

See more here: Ideas (aka.ms)


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
nmk
Resolver I
Resolver I

Thinking outside the box.. you have following three options:

 

  1. try changing the variables to global and pass it to power automate. You might need to put some validation in your flow to check for empty parameters
  2. Variables can be initialised via action output. Create an action to initialize the values
  3. You can create a child flow and move the core logic in that and that create two different wrappers in that way you will be maintaining the core logic only once.

 

HTH- if yes then please mark this as a solution

 

Cheers

 

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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.

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Top Solution Authors
Top Kudoed Authors
Users online (2,072)