cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How do I populate a new PowerApps form from last submitted form (SharePoint list)?

Hi all 

New to PowerApps, I have built a handover form for my team mates in PowerApps that works well but I would like to streamline it a bit.

At the moment they submit the form and start a new blank form, I would like to copy information from the last saved form to pre-populate different text fields in the new form.

This will save them from having to copy and paste the data across.

On submit the data is saved into a SharePoint list.

I have tried reseting card values but on submit it just overwrites the SharePoint entry with new card values and does not start a new entry.

 

Is this possible? 

If so any information would be great.

Thanks in advance 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: How do I populate a new PowerApps form from last submitted form (SharePoint list)?

@SccP72 

Yes, this is possible.  You will need to alter the Default property for each DataCard that you wish to exhibit this action.

In the default consider the following formula (again, applied to each data card where you need it):

If(
  !IsBlank(yourEditForm.LastSubmit.ID), yourEditForm.LastSubmit.yourColumnName,
  ThisItem.yourColumnName
)

Obviously, replace yourEditForm in the above with your EditForm name and yourColumnName with the name of the column you want to duplicate.

This assumes simple column types (text, number, etc). 

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: How do I populate a new PowerApps form from last submitted form (SharePoint list)?

@SccP72 

Yes, this is possible.  You will need to alter the Default property for each DataCard that you wish to exhibit this action.

In the default consider the following formula (again, applied to each data card where you need it):

If(
  !IsBlank(yourEditForm.LastSubmit.ID), yourEditForm.LastSubmit.yourColumnName,
  ThisItem.yourColumnName
)

Obviously, replace yourEditForm in the above with your EditForm name and yourColumnName with the name of the column you want to duplicate.

This assumes simple column types (text, number, etc). 

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Highlighted
Frequent Visitor

Re: How do I populate a new PowerApps form from last submitted form (SharePoint list)?

Thanks for the quick reply 🙂 i will try it now.

Highlighted
Frequent Visitor

Re: How do I populate a new PowerApps form from last submitted form (SharePoint list)?

Thanks again

 

Worked like a charm, after i worked out the need to save the form before the fields will fill 😉 

 

 

Highlighted
Frequent Visitor

Re: How do I populate a new PowerApps form from last submitted form (SharePoint list)?

Hi there,

 

I know this thread is old but hopefully you see this.

 

I am looking to do the same thing as you and I changed the code as suggested by the other user. Whilst changing the default in the data cards the information from the previously submitted form appeared. I saved the app and the next day went to trial it but the data from the previously filled in for doesn’t appear anymore even after submitting the form?

 

Any help would be greatly appreciated.

 

Thanks,

Gemma

Highlighted
Super User III
Super User III

Re: How do I populate a new PowerApps form from last submitted form (SharePoint list)?

@GNew 

Yes, that is an old thread.  Are you still having the issue?  If so, I would start a new thread on the forum and reference this posting if it is relevant.  That will get you some quicker looks and results.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,247)