cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
imranamikhan
Level: Powered On

Copy existing item and submit as new item on SharePoint

Hi everyone,

 

I have a PowerApps form created from a SharePoint list. The requirement is:

 

  1. A user has selected an item from SharePoint and launched the PowerApps form (now in Edit Mode)
  2. There is a checkbox or button which asks the user if they want to submit/save the form as a new item on SharePoint or update the existing item (all previous values are carried over).

 

Could anyone advise?

 

Best regards,

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Copy existing item and submit as new item on SharePoint

You could add a "Save as New" button on the form and use the Patch() to create the new item in SharePoint. Along with the Patch() you would need to reset the form and close it.

 

Example formula for the button:

Patch('SPOListName', Defaults('SPOListName'), {SPOFieldName1:CopyValue1 , SPOFieldName2:CopyValue2, ...});

ResetForm(SharePointForm1);
RequestHide()

 

You will need to call out each field that you are going to set in the new record in the {....} of the Patch().



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Copy existing item and submit as new item on SharePoint

You could add a "Save as New" button on the form and use the Patch() to create the new item in SharePoint. Along with the Patch() you would need to reset the form and close it.

 

Example formula for the button:

Patch('SPOListName', Defaults('SPOListName'), {SPOFieldName1:CopyValue1 , SPOFieldName2:CopyValue2, ...});

ResetForm(SharePointForm1);
RequestHide()

 

You will need to call out each field that you are going to set in the new record in the {....} of the Patch().



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

imranamikhan
Level: Powered On

Re: Copy existing item and submit as new item on SharePoint

Thank you so much for this and for your prompt response. Working exactly as instructed.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,636)