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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating several new r...
Power Apps
Unanswered

Creating several new records in a sharepoint list for all of the options selected in a field

(0) ShareShare
ReportReport
Posted on by 32

Hi all,

 

Hoping someone can help with this one. 

 

We have a scenario where users wish to raise change requests for reports that the business uses. There are approx 200 reports. A change can be requested that affects one or many of these reports. There may be only one change, or several changes that need to be made to one or many of these reports. Each change request is stored on a SharePoint list called 'MI_Change_Requests'.

 

For each change request, the jobs are broken down into 'Features'. We want to store these features on a separate SharePoint list called, imaginatively, 'Features'.

 

So as an example, a user may raise a change request that says I want 3 changes made to 4 reports. What we want to do is store the change request in the MI_Change_Request SharePoint list, but for the 3 changes that are needed, we want to store these as features against each report name, on the Features list. So, for each of the report names that are selected in the change request, we want a new entry in the 'Features' SharePoint list created.

 

We need the report names to be stored as text in SharePoint so that we can use search and filtering in Powerapps, so we have created a list in SharePoint called 'DD_Options' and listed all of the report names and ID's in there, then created a combobox in powerapps that points to a collection of that list for the report names. Essentially what we want to do is for every report name selected from that combobox, when the screen is saved, we want a new line created in the Features list to be populated with whatever data we want to put into it from the initial Change Request.

 

Does anyone have any ideas on how I can achieve this please? I've heard the FORALL command may help, but I can't work it out. 

 

Thanks in advance.

 

Jason.

 

 

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

    Hi @jbirkenhead ,

     

    Can you add some schematic diagrams to describe your needs intuitively 

    I'm not sure if my understanding is right, but  I think you just need to use Patch function to create a new record, when the report name is selected and Feature data is entered, click patch to store data and report name into the Feature list.

    Maybe I misunderstood your requirement, please explain it more.

    Best regards,

    Sik

     

     

  • jbirkenhead Profile Picture
    32 on at

    Hi Sik,

     

    Thanks for taking a look at this. I have added a basic diagram of what I am trying to do. At first I just want to get the data submitted to the correct sharepoint lists as text. Once the data is submitted, I will build a features screen within my app which will display the data submitted to the features list. 

     

    When the data is submitted to the features sharepoint list, I will need a change ID from the change request stored against the feature so I can link it all up in the app. A problem with that I can see already is that for a new change request, the change ID does not exist yet until the data has been submitted to the sharepoint list. 

     

    Thanks again,

     

    Jason.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @jbirkenhead ,

     

    My understanding :

    the combo box of report name can select multiple values, you want to create multiple rows with each report name in feature list ,  i.e. you select 3 report names in combobox , you want 'change request list' generate 1 row contains CR.ID, at meanwhile, you want the Feature list generate 3 rows contain the same CR.ID, but different report name, right?

    If my understanding is right, you can refer to: 

     

    ForAll(ComboBox1.SelectedItems,Patch('SP list',Defaults('SP list'),{CRID:CRID_Textinput.Text,'Report Name':TheReportName}))

     

    Note: TheReportName is the column of DD_Options

    Best regards,

    Sik

     

  • jbirkenhead Profile Picture
    32 on at

    Hi Sik,

     

    I got several different errors for this, depending on how I tried to tweak the code as it didn't work as it was written.

     

    Are you able to show me how you would have gone about setting this up please?

     

    Thanks,

     

    Jason.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard