Hi there,
I really have to get this right as its for an urgent business case.
I have a very basic Dataverse table which will be patched OnSelect of a button like below
Patch(DVTABLENAME, Defaults(DVTABLENAME),
{Name: User().FullName},
{Email: User().Email},
{'Office Location': Dropdown8.Selected.Value},
{'Date': DatePicker1.SelectedDate},
{'Redemption': "Unredeemed"});
But we need to ensure that a user can only make ONE reservation/patch per SelectedDate in the DatePicker control. If they try to click submit more than once, throw them an error message.
How can I do this so that I look up the colleague's email address AND the chosen date on the Dataverse table and, only if a row does not exist currently with these two elements, allow the patch?
Many thanks
K.