Hi @TomVictor ,
Just check if you have ',' commas as separator or ';' semi-colon.
I use commas so I wrote the code:
If(
ThisItem.'CRM - Commande' in colTaskUpdatesCommande.'CRM - Commande',
Update(
colTaskUpdatesCommande,
LookUp(
colTaskUpdatesCommande;
'CRM - Commande' = ThisItem.'CRM - Commande'
),
{
Client: LookUp(
Clients,
ClientID = DropdownCanvas1.Selected.ID,
ThisRecord
),
Commande: TextInputCanvas1.Value,
'Date de commande': DatePickerCanvas1.Value,
'Description commande': TextInputCanvas1_1.Value,
'Condition de facturation': DropdownCanvas1_1.Selected
}
),
Collect
(
colTaskUpdatesCommande;
{
Client: LookUp(
Clients,
ClientID = DropdownCanvas1.Selected.ID,
ThisRecord
),
Commande: TextInputCanvas1.Value,
'Date de commande': DatePickerCanvas1.Value,
'Description commande': TextInputCanvas1_1.Value,
'Condition de facturation': DropdownCanvas1_1.Selected,
'CRM - Commande': ThisItem.'CRM - Commande'
}
)
)
Considering that Client is lookup value, you need to capture the record completely instead of just dropdown.selected. As it sometimes doesn't update values properly when working on large datasets.
Hope this helps