Skip to main content
Community site session details

Community site session details

Session Id : 7cwFmD6A4Cahz3CMFPMtOM
Power Apps - Building Power Apps
Answered

Collection in Sharepoint List import

Like (0) ShareShare
ReportReport
Posted on 2 Jan 2023 10:33:03 by 56

Hello I have already received help but after consultation with my boss, I still have to change something. Currently the collection is transferred to sharepoint list but only randomly in free rows. I need to change that. How do I get it to transfer the data that is collected in my app to the correct row?
This is my App:

App.png

And this is my Sharepoint List. I Create every Day the Entrys for each Gebäude:

Crounex_4-1672655403202.png

And this is my fromel/syntax that I built with the help of the forum:
ForAll(col_Daten;
Patch(Betriebsdaten;
LookUp(Betriebsdaten; AblesewertNumerisch = Blank() && Mitarbeiter = Blank() && Bemerkungen = Blank());
{
AblesewertNumerisch:AblesewertNumerisch;
Bemerkungen:Bemerkungen;
Mitarbeiter:Mitarbeiter
}
)
)

Categories:
  • LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 02 Jan 2023 at 12:53:00
    Re: Collection in Sharepoint List import

    Perfect!

     

    Glad I could be of help and my apologies for the initial confusion. 😁

  • Crounex Profile Picture
    56 on 02 Jan 2023 at 12:50:53
    Re: Collection in Sharepoint List import

    Thank you very much for your help. It now works as intended.

  • Verified answer
    LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 02 Jan 2023 at 12:42:09
    Re: Collection in Sharepoint List import

    @Crounex, no the values between {}.

    The code below should do the trick:

     

    ForAll(col_Daten As Main;
     Patch(Betriebsdaten;
     LookUp(Betriebsdaten; ID = Main.ID);
     {
     AblesewertNumerisch:Main.AblesewertNumerisch;
     Bemerkungen:Main.Bemerkungen;
     Mitarbeiter:Main.Mitarbeiter
     }
     )
    )
  • Crounex Profile Picture
    56 on 02 Jan 2023 at 12:40:44
    Re: Collection in Sharepoint List import

    So you mean like this?

    Crounex_0-1672663235618.png

     

  • LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 02 Jan 2023 at 12:32:38
    Re: Collection in Sharepoint List import

    @Crounex, you will also have to prefix the values with Main. (see code in previous comment)

  • Crounex Profile Picture
    56 on 02 Jan 2023 at 12:28:56
    Re: Collection in Sharepoint List import

    @LaurensM 

    Oh sorry I didn't pay attention to that, that it is called differently when translating. I put in your formula, but it immediately turns red.

    Crounex_0-1672662523937.png

     

  • LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 02 Jan 2023 at 12:24:07
    Re: Collection in Sharepoint List import

    Hi @Crounex,

     

    My apologies, I was a bit confused myself. The data sources are probably translated to English, I thought you had 2 lists (Betriebsdaten and Operational data). However, I know realize that they are most likely just a translation.

     

    As I can see by your screenshot, your collection is linked to the SP list. Could you give the following code with ID (made slight adjustments) another try?

     

     

    ForAll(col_Daten As Main;
     Patch(Betriebsdaten;
     LookUp(Betriebsdaten; ID = Main.ID);
     {
     AblesewertNumerisch:Main.AblesewertNumerisch;
     Bemerkungen:Main.Bemerkungen;
     Mitarbeiter:Main.Mitarbeiter
     }
     )
    )

     

     

     

    I hope this helps!

  • Crounex Profile Picture
    56 on 02 Jan 2023 at 12:14:19
    Re: Collection in Sharepoint List import

    @LaurensM 

    So it's not linked? I thought that my formula ClearCollect(col_Data;OperationalData) creates the Collections from my Sharepoint List.

    Thank you for your detailed description but I am at my limit in my head and don't really understand it. I apologize in advance.
    Is it maybe easier if the collection is linked to the Sharepoint List or we add the Title?
    Can we possibly finish the formula/syntax together?

    This is what the collection looks like:

     

    image.png

     

  • LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 02 Jan 2023 at 11:44:59
    Re: Collection in Sharepoint List import

    @Crounex, ok the colData list is not linked to the list in the screenshot (BetriebsDaten). In this case, working with the ID will not work because colDaten is linked to a different List.

     

    What columns do you have available in the colDaten collection? You could extend the LookUp query to match the specific BetriebsDaten record you want. (below an example with Title)

    //Here I added a condition for the Title
    //You might need to change the .Title after ThisRecord to the correct colDaten column name where you save the name (Abwasserpumpstation_Zulaufpumpe 1)
    ForAll(col_Daten;
     Patch(Betriebsdaten;
     LookUp(Betriebsdaten; AblesewertNumerisch = Blank() && Mitarbeiter = Blank() && Bemerkungen = Blank() && Title = ThisRecord.Title);
     {
     AblesewertNumerisch:AblesewertNumerisch;
     Bemerkungen:Bemerkungen;
     Mitarbeiter:Mitarbeiter
     }
     )
    )

     

    You can also add a condition for the date && AbleseDatumU = YourDateOnTheHomeScreen. In short, you will have to extend the LookUp conditions with additional fields available in colDaten e.g. Title and AbleseDatumU (cannot see full name of the column in your list) in order to match the correct records. Currently we are searching for whatever record is empty, regardless if the type or date match.

     

    I hope this helps!

  • Crounex Profile Picture
    56 on 02 Jan 2023 at 11:24:25
    Re: Collection in Sharepoint List import

    @LaurensMThanks again for your quick reply.

    col_Daten -> Collection
    Betriebsdaten -> Sharepoint List
    I create col_Data -> App:OnStart -> ClearCollect(col_Daten;Betriebsdaten).

    I don't really understand about ID. Used your formula once but then I get an error:

    Crounex_0-1672658657749.png

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Loading complete