Hi all.. i'm newbie with Power Apps. My code is working correctly. But, there was "Delegation warning the highlighted part of this formula might not work correctly. The "Max" operation is not supported by this connector.". Can you solving this. Thanks!
If(
Form2.Valid, SubmitForm(Form2);
Set(
LastTicket, Max('DLFA - Ticketing', Value(Mid('Nomor Tiket', 3, Len('Nomor Tiket') - 2)))
);
Set(NewTicketNumber, If(IsBlank(LastTicket) || LastTicket = 0, 1, LastTicket + 1));
Set(CustomTicketNumber, Concatenate("T-", Text(NewTicketNumber, "[$-en-US]0000")));
Set(
RecordToUpdate, LookUp('DLFA - Ticketing', ID = Form2.LastSubmit.ID)
);
Patch(
'DLFA - Ticketing', RecordToUpdate,
{
'Nomor Tiket': CustomTicketNumber
}
);
ResetForm(Form2);
Set(varShowPopUp, true);
Refresh('DLFA - Ticketing')
)