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 / looping a question bas...
Copilot Studio
Unanswered

looping a question based on input

(0) ShareShare
ReportReport
Posted on by

Hi I am new to power virtual agents and power automate, I want to call an action  based on user input for instance a user can provide an input as an integer and based on that integer the user provides, I want to ask the same question until question count is equal to the integer provided by user, I have tried the implementation not sure how to pass variables and execute the looping does power virtual agents and power automate have this functionality :

 

e.g. 

 

Bot: How many buildings do you own?

User: 2

Bot: What is your 1 of 2 first pc's name?

User: Main building

Bot: Okay , What is your 2 of 2 first pc's name?

User: Small building

 

 

I have the same question (0)
  • remidyon Profile Picture
    Microsoft Employee on at

    Hi @mahambabp 

    You could set a variable "count" that you increment each time in a loop and compare it with the initial variable "userInput" using a powerFX formula as a condition and use the "go to step" instruction to loop on your questions

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 163

#2
Dua Sadiq Profile Picture

Dua Sadiq 125

#3
11manish Profile Picture

11manish 93 Super User 2026 Season 2

Last 30 days Overall leaderboard