web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ADD SEVERAL VALUE ON O...
Power Automate
Unanswered

ADD SEVERAL VALUE ON ONE VALUE

(0) ShareShare
ReportReport
Posted on by 2

Hello,

 

I have created a flow related to a form and I would like to add this form to a SharePoint list if certain conditions are met.

In my form there is a choice question with more than 100 choices in it.

 

I would like to add several values to an value.
For example: If person A chooses value 1 and person B chooses value 2, I would like one of the two values to be chosen to create the SharePoint list.

 

However in my flow there are not only 2 values, there are more than 30 values.


So I would like to add several values by creating a condition :
The multiple choice question] contains [one of the 30 values].

 

Ame-18_0-1601459693242.png

 

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at
    Re: ADD SEVERAL VALUE ON ONE VALUE

    Hi @Ame-18,

     

    You could initialize an array variable, then use rand() function to generate an array contains 1 to 30.

    Then put the array into the left side of Condition action, for example, the below screenshot is checking if the array contains "2":

    Screenshot 2020-10-01 141508.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Ame-18 Profile Picture
    2 on at
    Re: ADD SEVERAL VALUE ON ONE VALUE

    Hi @v-litu-msft 

     

    Thanks for your response !

     

    However, I think there was a misunderstanding about my request.

    It is not numbers that I would like to add, but text.

     

    To make it simpler I would like that when a person chose "text 1" or "text 2" or "text 3" etc.. in the forms to add this response on a specific SharePoint List.

     

    I know how to create a sharepoint list. But I wanted to know if it was possible to add several values in one condition.

    I can't add the value one by one because there are too many of them and I reach the limit to add condition.

     

    Thanks 🙂 

  • Verified answer
    v-litu-msft Profile Picture
    on at
    Re: ADD SEVERAL VALUE ON ONE VALUE

    Hi @Ame-18,

     

    You could use the logical comparison function instead of Condition action, for example:

    or(contains(variables('Collection'),'text1'),contains(variables('Collection'),'text2'))

    logical-comparison-functions 

    Screenshot 2020-10-01 173335.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard