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 / Add item to SharePoint...
Power Automate
Unanswered

Add item to SharePoint list for each checkbox marked in separate SharePoint list

(0) ShareShare
ReportReport
Posted on by 8

Hello!

 

I have two SharePoint lists:

One checklist, containing about 50 dropdown fields, and the same amount of text fields tied to the dropdown field.

One deviations list.

 

Whenever an operator goes through the checklist, they select either "Good" or "Deviation" in the dropdown field, and describe the issue in its description field.

 

At the end of the checklist, they press "Finished".

 

When the user presses "Finished", I want a PowerAutomate flow to go through the newly added item in the Checklist, and create a new item in the Deviations list for each dropdown that was marked as "Deviation". This item should contain the description field connected with the dropdown.

 

I have set up a flow with a "When an item is created or modified" trigger, but I am a little stomped on how to move forward without setting up a condition on each and every single dropdown field.

Categories:
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Well, you can initialize an Array type variable with the names of all your columns, and loop over that, but that isn't quite enough because each one has to tie to a specific text col too. So, I guess you could make your array be of JSON strings so for each item you pass the bool col name, the text col name, and whatever other elements you might need, then parse the json and use the element names as strings inside your expressions. It would be a bit clunky, but it would work.

  • michael0808 Profile Picture
    304 on at

    Since your first list has both Choice and Text fields that aren't technically "tied" together. There would be no way of knowing which text field is associated to which Choice field.

     

    I would personally say your best bet is to create a Form using MS Forms to handle the user inputs, and then use PA to add those items into the second list.

  • Hagru Profile Picture
    8 on at

    You're right, there is no way of actually knowing which text field is associated with the specific choice field, which makes it a bit difficult. I have a feeling I just have to set a world record in condition blocks, as it is a customer wanting help with his SharePoint app. 

  • Hagru Profile Picture
    8 on at

    That would probably work, but I feel like it will be clunky no matter what I end up doing, as it is a clunky setup to begin with. Thank you for your suggestion, I'll fiddle around and see if I can find a not so clunky solution.

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard