web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collecting items to table
Power Apps
Unanswered

Collecting items to table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I'm building an app for our service engineers and I'm struggeling with collecting data to a table.

In an initial screen they can fill out a timesheet:

 

M_a_r_t_i_n_0-1638365100841.png

 

All this is temporally saved in a collection (collDocumentation) and after submitting it is added to a table (tblOperationalDocumention):

 

ClearCollect(collDocumentation; tblOperationalDocumentation);;
....
data is saved in the collection each time a row is added in the timesheet
....

 

Submit button:

Collect(tblOperationalDocumentation; Filter(collDocumentation;ID <> 9999));;

 

This works fine so far. Afterwards the timesheet is checked and approved or rejected. In case it is rejected, the respective dataset is loaded into the collection again:

If(ThisItem.cr82d_status = 'StatusOD (tblOperationalDocumentation)'.Rejected;
ClearCollect(collDocumentation;Filter(tblOperationalDocumentation;cr82d_odid = ThisItem.cr82d_odid)));;

 

Now it can be adapted again (change data or add / delete rows). All changes are saved in the collection again and all changes can be found when I check the collection. At the end the user pushes a submit button:

 

 

First, all "old" items are removed: 

removeIf(tblOperationalDocumentation;ODID = TextBoxODID_1.Value);;

 

All items are added to the table with collect:

Collect(tblOperationalDocumentation;collDocumentation);;

 

 Now my problem: Not all rows of the collection are added to the table. Only new added rows, not the existing ones. I have no idea why. 

 

 

Any ideas? Thanks for help.

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard