Hello!
Every time I am using Patch function I need help and this time I have no idea what is wrong here...
Patch(
'Request Training',
Defaults('Request Training'),
{
'Name': Value(DataCardValue2.Text),
'Request ID': Value(DataCardValue3.Text),
Trainee: Value(DataCardValue5.Text),
'Start date': DateValue1.SelectedDate,
Position: DataCardValue6.Selected.Value,
Shift: DataCardValue7.Selected.Value
}
)
The data source is table in dataverse with column titles as shown in my patch function. I have checked all titles and DataCardValues numbers and it's all ok. Shift and Position are choices, Date is DateValue to choose, Request ID is a number which in table is WHOLE NUMBER, in my form it has a function to increment by 1: First(Sort('Request Trainings', 'Request ID', Descending)).'Request ID' + 1.
Help, please!