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

Copy Last Item Button

For my form, most of the times i want to keep most the fields the same and just change the name. How do i have a button that copies the field data of the last item that was submitted and i can submit the item as a new item?

1 ACCEPTED SOLUTION

Accepted Solutions
Merlijn
Level 8

Re: Copy Last Item Button

You can use the property 'default' of the textfield.

 

Sort your source in a descending order (this way it works with large collections), then get the first record of that source and select the field:

 

First(SortByColumns(SOURCE;"id field";Descending)).FieldName

firstlast.png

 

 

With this formula you can set the default values the same as the last entered record.

2 REPLIES 2
Merlijn
Level 8

Re: Copy Last Item Button

You can use the property 'default' of the textfield.

 

Sort your source in a descending order (this way it works with large collections), then get the first record of that source and select the field:

 

First(SortByColumns(SOURCE;"id field";Descending)).FieldName

firstlast.png

 

 

With this formula you can set the default values the same as the last entered record.

tonyzhang0510
Level: Powered On

Re: Copy Last Item Button

Nvm, figured it out. Thank you.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 4 members 2,786 guests
Recent signins:
Please welcome our newest community members: