HOw can I get the last ID from a table??

HOw can I get the last ID from a table??

I just wanna know how can I get the last ID from the LTareas


That's the code from one "On Success" form.

insert into Nueva_Tarea
[
Added_User = zoho.loginuser
Contacto = input.Contacto
Entidad = input.Entidad
Programada = input.Fecha_de_realizacion
Tipo = "Llamada"
]
for each LTareas in Nueva_Tarea[Contacto==input.Contacto && Entidad==input.Entidad && Programada== input.Fecha_de_realizacion && Tipo=="Llamada"]
{
}