Hi,
I have a dataverse table where I have an unique ID with the following form: Date+Name.
Everytime, an user clicks on a button on my app, I got the data with the following patch:
Patch('SAB cout projet';
Defaults('SAB cout projet');
{'Month and year': Text(ComboBoxPMois_1.Selected.Result)};
{Month: TitleMois.Text};
{Year: TitleYear.Text};
{Date: GalleryDateMasque.Selected.Date};
{'Total month': Sum ((Sum(GalleryDataBudgetR.AllItems; BodySalaire.Text)); (Sum(BodyLicencesPVPA)); (Sum(BodyLicencePVJ)); (Sum(BodyLicencesPVC)); (Sum(BodyLicencesPVPB)); (Sum(BodyAchats)); (Sum(BodyDeplacements)))};
{Salaire: Sum ((Sum(GalleryDataBudgetR.AllItems; BodySalaire.Text)))};
{Achats: Sum ((Sum(GalleryDataBudgetR.AllItems; BodyAchats.Text)))};
{Deplacements: Sum ((Sum(GalleryDataBudgetR.AllItems; BodyDeplacements.Text)))};
{Licences: Sum ((Sum(BodyLicencesPVPA)); (Sum(BodyLicencePVJ)); (Sum(BodyLicencesPVC)); (Sum(BodyLicencesPVPB)); (Sum(BodyAchats)); (Sum(BodyDeplacements)))};
{Projet:ComboBoxVProjets.Selected.Result};
{ID: Text(ComboBoxPMois_1.Selected.Result) & "-" & ComboBoxVProjets.Selected.Result})
But I will like to have the possibility to keep the latest record in case the row has the same ID. I tried by modifying the business rules and by going on the admin center. And I even activated the detection of the duplicate rows but I'll like to have an update or create button instead of that options.