Announcements
With(
{TimeCardRecord: LookUp('Truck Driver Time Card', ID = frm_Fleet.LastSubmit.ID) },
If(!IsBlank(TimeCardRecord),
Patch('Truck Driver Time Card',LookUp('Truck Driver Time Card', ID = frm_Fleet.LastSubmit.ID),
{
'Driver Name': {
Id: varDriver.ID,
Value: varDriver.'Full Name'
},
'Vehicle Type': {
Id: varVehicleType.ID,
Value: varVehicleType.'Vehicle Type'
},
Vehicle: {
Id: varVehicle.ID,
Value: varVehicle.'Vehicle Details'
}
}
);
Notify("Form Submitted Successfully!",NotificationType.Success);
ResetForm(frm_Fleet);
Navigate(scr_Fleet_Main);
Set(varDriver, Blank());
Set(varVehicleType, Blank());
Set(varVehicle, Blank());
,
Notify("ID was Blank so record returned from LookUp")
)
);
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.