I have a dataverse table called Project_Agenda. In powerapp I have a collection called colAgendaDatabase. The collection is composed of all columns belonging to Project_Agenda table and some more. In the powerapp I change some values of the collection.
I want to update Project_Agenda table based on collection colAgendaDatabase but it does not work with the below code:
ForAll(
colAgendaDatabase,
Patch(
Project_Agenda,
LookUp(Project_Agenda, Project_Agenda = Project_Agenda ),
{
'CW20/23':txtCW2023.Value
}
)
);
Project_Agenda is the unique identifier (display name) in Dataverse table.
cr02d_project_agendaid is the unique identifier in both Dataverse table and collection. The unique identifiers are of course the same for corresponding records in table and collection.
I tried also other code variation (difference in lookup function) but it also does not work:
ForAll(
colAgendaDatabase,
Patch(
Project_Agenda,
LookUp(Project_Agenda, Project_Agenda = colAgendaDatabase[@cr02d_project_agendaid]),
{
'CW20/23':txtCW2023.Value
}
)
);