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 Automate - Building Flows
Unanswered

Populating Microsft Lists

(0) ShareShare
ReportReport
Posted on by 2
Hi,
 
I want to build a flow in Power Automate that is based on MS Forms. In my MS Forms I have a question that asks "how many items do you want?". I want the flow to populate a MS List with an ID that consists of 1. Response ID (from the Form), 2. the number of items somebody requested. So once the flow runs (assuming the response ID was 5 and somebody entered 3 in the question "how many items do you want?"), the list would be populated with 3 rows: 5.1, 5.2 and 5.3. 
 
I tried doing that by initializing a variable with the array index of assets, then inside a loop I added the create item (in my list), and in the column ID in my list where I want the IDs from the flow to be, I added an expression that concats the response ID and the outputs of the question "how many items do you want?". I keep getting errors.
 
Also, I'm on another quest with that flow. I'd like to send an automatic e-mail to the requestor (person that filled in the MS Form) which will contain the list of all IDs that were created, one below another. 
 

I'd appreciate any help as I'm stuck with this :(
I have the same question (0)
  • bm_data Profile Picture
    30 on at
    Populating Microsft Lists
    I am a little confused, you want (1) form submission to create (3) separate rows on a list? If so, I only understand the "5.3" noted above as Form submission id #5 and quantity = 3 items wanted. If this is all correct, what is the 5.1 and 5.2 represent?
  • creativeopinion Profile Picture
    10,482 Super User 2025 Season 2 on at
    Populating Microsft Lists
    When you create an item in SharePoint from a MS Response, every item will have an auto-generated ID. To create a custom ID as per your specifications, you'll need to create a column for it. I'd recommend a text column for this. 
     
    For demo sake, I'm storing my values in a Compose action.
     

    Range

    In another Compose action insert an expression and use the range() function. The range() function generates and array of integers starting from a certain number. 
     
    For the first number enter a 1 (since that is where you want the numbers to start). Add a comma then the second number. For the second number insert the output from the Compose action above. In your case, you can use the output from the form response.
     
    Run a test. Review the output of the Compose action. It will output an array of numbers from 1 to 3 in my case.
     

    Loop Through Each Number

    Add an Apply to Each action. Insert the output from the Compose action above. This action will loop through each item in the array. To confirm this, you can also add a Compose action to output the Current Item. Compose actions can be helpful to troubleshoot and build your flow.
     
     
    Run a test and review the outputs. 
     

    Prepend the Response ID

     
    In the Compose action, place your cursor at the start and insert the Response ID. I'm using the output from the Compose action in my case. Don't forget to add the period between the Response ID and the Current Item.
     
    Run a test. Review the outputs. You'll then need to insert the Create Item action inside the Apply to Each action as you want to create one item for each custom ID. Use the outputs of the Compose action in the Custom ID field.
     
     
    For more details on how to create an SP item from a MS Form submission refer to this YT Tutorial: 

    How to Get a Microsoft Form RSVP Response into a SharePoint List

    In this Microsoft Power Automate tutorial, I’ll show you how to get your Microsoft Form responses into SharePoint. I’ll cover how to build a Microsoft form with conditional fields by using branching. You’ll learn how to format your multiple choice responses for a SharePoint multi-choice column as well as converting it to text. I’ll also show you how to take a text response and convert it to a number with a switch action and with an expression.

    After adding the response to SharePoint, we’ll send the user an email confirmation with all the details of their form submission.

    At the end of the video I’ll show you a few tips and tricks on working with a SharePoint list.


    IN THIS VIDEO:
    ✓ How to get a Microsoft Form Response into SharePoint

    ✓ How to get a Microsoft Form ID

    ✓ How to get a Microsoft Form response

    ✓ How to Build a Microsoft Form with Conditional Fields

    ✓ How to used Branching in Microsoft Forms

    ✓ How to format Microsoft Form multiple choice responses for a SharePoint multi-choice column

    ✓ How to parse a Microsoft Form multiple choice response as string of text

    ✓ How to convert a text response to a number

    ✓ How to use the Switch action

    ✓ How to create a custom email confirmation for a Microsoft Form submission

    ✓ How to Create a Custom View in a SharePoint list

    ✓ How to use the Compose Action

    ✓ How to write Power Automate Expressions



    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube

    👉 Tips and Tricks on TikTok and Instagram
  • KK-19111832-0 Profile Picture
    2 on at
    Populating Microsft Lists
    Thank you creativeopinion! That worked!
     
    I am now struggling with the second part of the flow. Mainly, I would like to list all of the custom IDs created by the loop with Compose in an email. So the email would be something like:
     
    Thank you for submitting the Form. Here are the IDs generated:
    ID1.1
    ID1.2
    ID1.3
     
    Do you maybe have an idea on how to do that?
  • creativeopinion Profile Picture
    10,482 Super User 2025 Season 2 on at
    Populating Microsft Lists
    Nest an append to string variable inside the Apply to Each loop. Each time you loop through—"collect the ID". Output the final string outside of the Apply to Each action.
  • Suggested answer
    David_MA Profile Picture
    12,536 Super User 2025 Season 2 on at
    Populating Microsft Lists
    I assume when you refer to populating the list with rows, you mean items:
     
    If so, use a do until action.
    1. Create an integer variable named Items Created and set the initial value to 0
    2. In the Do until, set it until Items Created equals the value from your form for the number of items 
      1. You will need to wrap the question in an int expression since MS Forms will treat the value as a string rather than a number
    3. Add in Increment variable action to the Do until and increment Items Created by 1
    4. Add a Compose action and enter the form response ID followed by a period and the Items Created variable
    5. Then create your SharePoint list item and use the output of the compose action
     
    You flow will look like this.

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 555 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 388 Moderator

#3
chiaraalina Profile Picture

chiaraalina 264

Last 30 days Overall leaderboard