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 / How to check if result...
Copilot Studio
Unanswered

How to check if results is more when results is more than one

(0) ShareShare
ReportReport
Posted on by 72

I am using an Excel to extract the results from the question. I will be using a compose action with the expression split("Yourtext",",") using the separator. So the result you will have separated data in an array variable instead of all the results combining into 1 string. How do I check if there are more than 1 results because if there are more than 1 results, I will need to send a msg to user to either refine the question or send e-mail to group for help.  Appreciate any guidance in advance.

 

Thanks,

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Tak103,

     

    You could use a length function in an expression to check the outputs of your compose action:

    length(outputs('Compose'))

     

    The expression could be used in a condition action with an operator like is greater than 1.

     

    lengthoutputscompose.png

  • Verified answer
    Tak103 Profile Picture
    72 on at

    Unfortunate, the answer length can vary. If I were to use split("Yourtext",",") using the separator to separate the results in an array variable. Will I be able to count how many is in the array variable? If this is a sound approach, would you be able to share with me how I can do this.

     

    Thanks,

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Tak103,

     

    That is why I suggested to use a length function, this type of function can count the number of items in an array. It doesn't matter how much items there are in that array, it will just output a number.

     

    When the array has 3 items it will output 3. When it has 10 items it will output 10 as a result.

     

    Can you share a screenshot of your current setup? I can adapt my previous example to your setup 😀

  • Tak103 Profile Picture
    72 on at

    Thanks.  I am totally new to this so much appreciate it.

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Tak103,

     

    I don't see a screenshot. Can you try and attach it again to your post?

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 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard