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 / Create multiple List I...
Power Automate
Unanswered

Create multiple List Items from fields in a Single Form

(0) ShareShare
ReportReport
Posted on by 9

I have created a simple flow that creates a List item when a Form is submitted. The form is used to submit incidents during an event. Now, there may be multiple incidents during the event and I am trying to find out how to create a List item for each incident in the form. I feel I should be able to create a list item for the first incident then loop back and create another for the next until I have got to the end of the list. I am new to this and can't see an obvious way to set it up. Any help appreciated.

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @Fryerman :

    Could you please show more details about the forms you mentioned?Some screenshots better.

    Best Regards,

    Bof

  • Fryerman Profile Picture
    9 on at

    Hi @v-bofeng-msft 

    The form is an MS Forms Form. The screenshot will (hopefully) be at the end of this message.  Fields are simple fields, either single or multi-line text. There are 5 fields at the top which serve as Keys/information for the List item. There are 2 (at least) report fields which are multi-line text. I want to write each of these into a new List item which will include the initial 5 fields. I can sort of do it using Create New Item for each of the report fields and cycling through the process. BUT I would like to read the number of (non-empty - in case someone enters a blank) Report fields and then cycle through Create New Item. Does that seem possible?

    Fryerman_0-1627926310409.png

     

  • v-bofeng-msft Profile Picture
    on at

    Hi @Fryerman :

    Do you want to create an item with top5 fields and reprot (Ecemptions), and then create an other item with top5 fields and reprot (Medical)?

    If so, you only need two "Create item" actions to create these two projects separately.

    Best Regards,

    Bof

  • Fryerman Profile Picture
    9 on at

    Hi @v-bofeng-msft 

    Yes, that would work, but I have 3 other report field, which may or may not have data entered. I was hoping that there would be a way that I could perhaps read these 'report' fields into an array and loop through them so I only ran Create Item against non-empty fields. Create Item reads ALL the fields so there may be a way to get all the data on the first pass. For subsequent Writes to SharePoint I think I would have to break into the Create Item routine at the point that it Writes a new item.... 
       Anyway, apologies as I maybe wasn't clear on what I was trying to do.

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Fryerman :

    Considering that there are fewer fields involved in your form, I think it is much more easier to use multiple "if(equals(targetfiled,")" to determine whether each field is empty.

    Best Regards,

    Bof

  • Fryerman Profile Picture
    9 on at

    @v-bofeng-msft Thanks. I'd not come across that. It will save me quite a bit. Much appreciated

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard