Hi @noneother ,
Are you waiting to also retain all the notes in the collection?
You need to firstly initiate it - App OnStart would work - this will give you an empty collection with the required fields
ClearCollect(
ColForm1Form2,
{'Consumer Sample for Survey FINAL':""|,
{'Activity Notes': ""}
);
Clear(ColForm1Form)
Then you can collect all the form inputs
Collect(
ColForm1Form2,
{
ACMPS_CARE_RECIPIENT_ID: DataCardValue146.Text,
'Activity Notes': DataCardValue25.Text
}
)
Then when you want to write it all back
ForAll(
RenameColumns(
ColForm1Form2,
"ACMPS_CARE_RECIPIENT_ID"
"ACMPS_ID"
"Activity Notes",
"Activity",
),
Patch(
'Consumer Sample for Survey FINAL',
{ACMPS_CARE_RECIPIENT_ID:ACMPS_ID};
{'Activity Notes':Activity]
)
)
Is this what you want to do - or do you want to write each, but store in a collection as well? The first bit (OnStart) and the collection would be the same. The Patch would be
Patch(
'Consumer Sample for Survey FINAL',
{ACMPS_CARE_RECIPIENT_ID: DataCardValue146.Text},
{'Activity Notes': DataCardValue25.Text}
)
or
UpdateIf(
'Consumer Sample for Survey FINAL',
ACMPS_CARE_RECIPIENT_ID=DataCardValue146.Text,
{'Activity Notes': DataCardValue25.Text}
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.