cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

Collections multiple entries all the same

Hi im currently working on making my apps offline, 

 

I would like for my apps to save to the database when connected to the internet and if not connected send to collections and when reconnected to the network send the data, i have the following error. 

 

If the collection has multiple entries all the entries are sent as the same entry? See the syntax below

 

         If(Connection.Connected, Patch('TEST', Defaults('TEST'),
{Assetid: Assetid_Dropdown.Selected,
starthours: Value(DCV_starthours.Text)}));

 

          If(!Connection.Connected, Collect(OFFTESTCOLLECTION,
{Assetid: Assetid_Dropdown.Selected,

starthours: DCV_starthours.Text}))

1 REPLY 1
Highlighted
Super User
Super User

Re: Collections multiple entries all the same

Hi @shaneOZ

 

Please send a picture of the error.

 

One thing I did notice is that the collection is not setting the value for StartHours as a numeric value as it is done with the patch. This can cause problems when you are trying to path the collection back to the data source.

 

Value(DCV_starthours.Text)

 

twitter: @dawidvh

youTube: https://www.youtube.com/channel/UCIMe_ErQZP5chbI9UyW0xLw

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

 

 

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response 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 (4,133)