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 / Copilot Studio / Looping back to previo...
Copilot Studio
Unanswered

Looping back to previous question

(0) ShareShare
ReportReport
Posted on by 10

Is there a way to loop back to a previous question when an invalid answer is detected?

 

For example, I have a topic that asks for an order # and proceeds when an order # is found.

 

How do I keep looping to the question X amount of times until the user provides a matching order # or exceeds the number of attempts?

Categories:
I have the same question (0)
  • DiegoPeres Profile Picture
    327 on at

    Hi @MikkoM 

    Yes, there is, you need to treat the data if it is not found.
    I created a situation where the data is not found for you to understand the logic that must be created.
    For this I used the Power Automate to search the data informed by the user.

    DiegoPeres_0-1663026836077.png

    As for your search not finding the data you need to define a return parameter and create a validation condition in your topic, so the user will return to the flow of informing the data until it is found.


    Did I answer your question?😉
    Please consider accepting it as the solution to help other members find you faster.


    Like my answer?


    Like it! 👍



    Thanks!
    Diego Peres,
    Connect with me: Linkedin

     

  • MikkoM Profile Picture
    10 on at

    Right, no way to do this without Power Automate?

  • Verified answer
    DiegoPeres Profile Picture
    327 on at

    Hi @MikkoM,  If you already have the data in your stream it is possible. If in your topic the answer is always going to be #, you can put in the condition, if it differs from # it goes back to the input request.

    DiegoPeres_0-1663108868977.png

     


    Did I answer your question?😉
    Please consider accepting it as the solution to help other members find you faster.


    Like my answer?


    Like it! 👍



    Thanks!
    Diego Peres,
    Connect with me: Linkedin

     

  • NielsUitterdijk Profile Picture
    2 on at

    This seems to be no longer possible since a UI change. Cannot find anything in the docs either about how to do this with the current version. I made a very simple scenario where I ask a question, store the entire answer, and make a condition if a certain keyword variable is present in the answer, and then use the 'go to step' to go back to the question. When prompted, this enters an infinite loop and the bot times out.

    Any idea how to achieve such a loop?

    NielsUitterdijk_0-1690206162897.png

     

  • joeflynn Profile Picture
    2 on at

    I am stuck in the new authoring canvas and cannot seem to figure out how to go back to a previous step when the supplied answer is No.  I did the Go Back to Step and it does nothing.

  • Robulane Profile Picture
    on at

    Hi,

    We are working on improving this scenario. To unblock yourself, you can open question properties and select "Ask every time":

    Robulane_0-1690527260927.png

     

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi there,

     

    On the new canvas when you click on the plus button, and then on Topic Management > Go to step . After clicking on Go to step, select the step in the conversation tree on canvas where you want the bot go back to.

     

    2023-08-03 13.28.56 web.powerva.microsoft.com c40cd40fb6bc.png

     

    Cheers,

     

    Fernando

  • maghedrizk Profile Picture
    7 on at

    Thank you..This answer saved me time.

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard