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

Save/Update existing data from Collection

Hi,

 

I'm currently doing the following on my PowerApp solution (OneDrive Business | Excel):

 

Note: In Excel I have a column called GUID where I generate unique id as soon as new row/data is saved.

 

  1. New Entry:
    If Connection is available: Data is saved/Patched directly to DataSource and also saves a copy in Collection called CollectionSet
    If Connection is not available: 
    Data is saved in a new Collection called EntriesToBeSynced. As soon as there is a connection, the pending data is saved to DataSource and saves a copy in CollectionSet
  2. Edit Data/Modify Data:
    If Connection is available: New changes are saved/Patched directly to DataSource and also saves a copy in CollectionSet
    If Connection is not available: Data is saved in a new Collection called FirstSurveyToBeUpdated.

DataSource (Master_tbl) columns:

GUID | First_name | Last_name | Date_of_birth

 

FirstSurveyToBeUpdated columns:

GUID | First_name | Last_name | Date_of_birth

 

 

Example:

 

Master_tbl____________________________________________________

995B2A63-F368-9142-433A-82FFCA412F65 | Sam | Smith | 09/07/1970

_____________________________________________________________

 

 

FirstSurveyToBeUpdated_______________________________________

995B2A63-F368-9142-433A-82FFCA412F65 | John | Smith | 09/07/1970

_____________________________________________________________

 

Question: Is it possible to update the existing data/row matching GUID in DataSource from FirstSurveyToBeUpdated?

 

Thanks

2 REPLIES 2
Lisabel0
Level 8

Re: Save/Update existing data from Collection

It seems that you are creating a offline mode app. See if below documentation helps:

https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/

Kevin_Maxwell
Level: Powered On

Re: Save/Update existing data from Collection

@Lisabel0 Thanks for sending the link. I have already looked at it long time ago, but unfortunately it doesn't say how to edit an existing information.

 

I've done a few things in the past few days and it was Patch. But I got to another problem, since I'm using Patch then Form Submit function won't be used and therefore I can't validate Required fields.

 

As you can see, I'm new to PowerApps and any help would be appreciated.

 

Best,

Kevin

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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