QUESTION CUSTOM FUNCTIONS

QUESTION CUSTOM FUNCTIONS

HI, i have a question, 

¿Is it possible to get the last record under the get related record method?

fin = zoho.crm.getRelatedRecords("Events","Contacts",ID.toString(),1,200);
for each ele in fin
{
user=ele.get("Event Owner");
idx=(ele.get("ACTIVITYID")).toLong();
sd=ele.get("Start DateTime");
resp4 = zoho.crm.getRecordById("Events",idx);
info resp4;
info sd;
info user;
}

A contact has multiple events.

I need to get the user that generated the last event to a contact


Thank you, bye and regards.