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 / Power Automate / How to compare a speci...
Power Automate
Unanswered

How to compare a specific field from every item on an array with a form answer?

(0) ShareShare
ReportReport
Posted on by 5

Hi!

I have an automation connected to a Microsoft Planner and a Microsoft Form in which I list all the buckets on a Planner plan, and I need to compare if the Name of the bucket is similar (equals to or contains, not an issue) to the answer given by the user on a Microsoft Form (it's a multiple choice question in which the user can select only one option).

How can I loop through all the buckets listed (I get this array of buckets using the Power Automate native connector) and compare the Name of the Bucket to the Form Answer, and then, when I get a match (or a boolean true), I define a variable with the ID of the bucket found?

 

I tried some things, but it seems I'm not implementing For Each + Condition > Action in the correct way...
Thank you all in advance.

Categories:
I have the same question (0)
  • wskinnermctc Profile Picture
    6,519 Moderator on at

    Are the submissions from the MS Form actually written? Like free text?

    Or will the response be from multiple choice and they can select the option? Can they select multiple options?

  • mateus_oliveira Profile Picture
    5 on at

    It's a multiple choice answer, and the user can only select one option - but there's a "Other" option that would allow them to input a free text response. However, for this, I can have a "default" output (a default bucket for any reply whose given bucket doesn't match any on the list).

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard