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 Apps - Building Power Apps
Unanswered

Patch modified list items in a collection as new items to SharePoint list

(0) ShareShare
ReportReport
Posted on by 1,110

I have a collection whose schema is directly linked with my SharePoint list.

ClearCollect(
 colMPPDock,
 ShowColumns(
 'MPP Dock Dev',
 "Bay",
 "ForkTruckType",
 "MaterialType",
 "ID",
 "TruckStatus",
 "Author"
 )
);

The collection is connected to gallery and after all the updates on the gallery am successfully able to save to list using

Patch(
 'MPP Dock Dev',
 colMPPDock
);

Now the problem is when I get those items again in my gallery and modify them again, I would like to submit them as new items not as modified items. When ID column doesn't have a value in my collection, it is submitting as new item and when it has some value it is modifying existing item. I tried UpdateIf to update the ID to blank and also tried DropColumns on ID. Both didn't work. How can I submit modified items in collection as new items to SharePoint list. Hope my explanation is clear, otherwise happy to clarify.

 

Thanks and Regards,

Ramesh Mukka

I have the same question (0)
  • StretchFredrik Profile Picture
    3,308 Super User 2025 Season 2 on at
    Re: Patch modified list items in a collection as new items to SharePoint list

    Hello @RameshMukka 

     

    Have you tried using "Collect" instead of patch? That might work in the case where it updates a row when you want to submit a new one

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Patch modified list items in a collection as new items to SharePoint list

    @RameshMukka 

    Collect('MPP Dock Dev',colMPPDock);

    Will add the items to the list

     

  • rameshmukka Profile Picture
    1,110 on at
    Re: Patch modified list items in a collection as new items to SharePoint list

    @StretchFredrik @Drrickryp 

     

    I get this below error when I used Collect('MPP Dock Dev',colMPPDock).

    RameshMukka_0-1660826702205.png

    I have the ID value in my collection whose values came from SharePoint list directly.

    RameshMukka_1-1660826769744.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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

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

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 381 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard