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

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,937 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,937 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,937 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

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
11manish Profile Picture

11manish 227

#2
sannavajjala87 Profile Picture

sannavajjala87 208 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard