Hi @d3ell ,
Could you please share a bit more about your scenario?
Do you want to save the whole collection records into a single one record in your SP list?
Could you please share More details about the data structure of your Collection and your SP list?
I assume that the data structure of your SP list as below:
Note: The Mon, Tue, Wes, ... Sun columns are all Multiple line text type column, which has enabled the "Use enhanced rich text" option. In addition, these columns are used to store the Job records for current week day.
the data structure of your Collection as below:
The JobTitle column used to store the Job name, the Duration column is used to store the time (minutes) you spent within the corresponding job, the EmployeeName column is used to store the employee name.
I suppose that you want to store above Job reocrds in the JobCollection as a Single one record into your SP list, is it true?
Based on the needs that you mentioned, I afraid that there is no direct way to achieve your needs in PowerApps currently. As an alternative solution, you could cosider concatenate the column values of above Collection into a single one text string, then save the concanated string value into your SP list.
I have made a test on my side, please take a try with the following workaround:
The data structure of the Job Collection as below:
The App's configuration as below:
Set the OnSelect property of the "Log Job" button to following:
Patch(
'20190422_case3', /* <-- '20190422_case3' represents my SP list data source */
Defaults('20190422_case3'),
{
Title: First(JobCollection).EmployeeName, /* <-- Store the employee name into the Title column in my SP list */
Mon: If(Weekday(Now())=2, Concat(JobCollection, "Job Name:"& JobTitle &", Duration:"&Duration&"<br>")),
Tue: If(Weekday(Now())=3, Concat(JobCollection, "Job Name:"& JobTitle &", Duration:"&Duration&"<br>")),
Wes: If(Weekday(Now())=4, Concat(JobCollection, "Job Name:"& JobTitle &", Duration:"&Duration&"<br>")),
Thu: If(Weekday(Now())=5, Concat(JobCollection, "Job Name:"& JobTitle &", Duration:"&Duration&"<br>")),
Fri: If(Weekday(Now())=6, Concat(JobCollection, "Job Name:"& JobTitle &", Duration:"&Duration&"<br>")),
Sat: If(Weekday(Now())=7, Concat(JobCollection, "Job Name:"& JobTitle &", Duration:"&Duration&"<br>")),
Sun: If(Weekday(Now())=1, Concat(JobCollection, "Job Name:"& JobTitle &", Duration:"&Duration&"<br>"))
}
)
when you click the "Log Job" button, the corresponding values would be saved into your SP list as below:
More details about the Patch function and Concat function, please check the following article:
Patch function, Concat function
Best regards,