Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

How to creat copy from exisiting item?

I need to create a "copy item" on a typical auto-generated three-form data source (list, detail, edit forms) connected to a SP list.

1) User has selected a certain item, and is now on the DetailForm.

NewForm(Form2); FormMode.Edit=FormMode.New; Navigate(Edit, ScreenTransition.None)​

but actually it is not coping the item it is just give me a new blank form . 

Resolver III
Resolver III

@gme-eg  In Details screen for Data Source Property provide your sharepoint list and in Item property <GalleryName>.Selected.

Eg: In your app you have a Gallery with name "GalleryA" which shows list of items from your sharepoint list. then in your details screen Item property should be GalleryA.Selected which shows selected item.

Super User
Super User

is it that you want repeat a record in your list?

yes copy an item and repeat it

I already did that any idea what is the issue

Please follow this:

  1. Have a Form1 and Gallery1
  2. Items property of the Form1 : Gallery1.Selected
  3. Insert and Icon1 or button1 into Gallery1
  4. Set the Onselect of the Icon1 to; Set(CollectionName,ThisItem) . this will create a collection of the item cliked
  5. Insert a another button2 and put the onselect to the following Patch:

Patch('[dbo].[DataSource]',Defaults('[dbo].[ DataSource]'),

{FirstName: CollectionName. FirstName,

ReceipientName: CollectionName.ReceipientName,

FullName: CollectionName.FullName,

EntryDate: CollectionName.EntryDate})


Note; Point 4 above would create the collection1 while point 5 would insert the created items in the collection into your dataSource


Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

set collection gives error  and the copy patch formula the same

Change the onselect of the icon1 to:
Select (Parent);Set(CollectionName,ThisItem)
If it doesn't work, give Error message.
It works at my end.

sorry not working



also for the patch added to the button

Patch('[dbo].[Working Hours Tracker Application]',Defaults('[dbo].[ Working Hours Tracker Application]'),
{Employee: Copy. Employee,
Service Category: Copy.Service Categor,
Customer: Copy.Customer})

Please check the formula Select(Parent);Set(Copy,ThisItem) not

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,569)