searchrecords in Lookup Fields

searchrecords in Lookup Fields

While updating a Task I need to find a smallest Due Date of a task, related with an Account in a current task.
I need to find allrelated tasks for a given Account, so I'm trying to use searchRecords, but the system gives an error 
{"4832":"Invalid parameter value"}
I understand that the code below is incorrect, but I didn't find anything....

void   firstMeetingDate  ( string accountId   date dueDate   )
foundRecords = zoho.crm.searchrecords("Tasks","([Contact Name].Id|=|"+input.accountId+")",1);