Task Assignment in Custom Function

Task Assignment in Custom Function

Hello,

I have this Custom Function, where I fill some fields. I also need to fill in the "Task Owner" field with the Potential Owner.

My code:

mp.put("Task Owner",PotOwner);

Does not work, because it assigns the task to the user running the Function. 
How could I set the Task Owner as the Potential Owner properly?

Thanks!

PotentialsList = zoho.crm.searchRecords("Potentials","(RunWorkFlow|=|True)",0,100);

for each rec in PotentialsList

{

pId=rec.get("POTENTIALID");


TaskClosingDate=(rec.get("Closing Date")).toTime();

PotOwner=(rec.get("Potential Owner")).toString();

mp=map();

mp.put("Subject","Task 1");

mp.put("Due Date",TaskClosingDate);

mp.put("Status","Not Started");

mp.put("Task Owner",PotOwner);

mp.put("Priority","High");

mp.put("SEID",pId);

mp.put("SEMODULE","Potentials");

createTask = zoho.crm.create("Tasks",mp);