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 Platform Community / Forums / Power Apps / Patch modified list it...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 1,113

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

Categories:
I have the same question (0)
  • StretchFredrik Profile Picture
    3,391 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,113 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard