Custom Function help - Mismatch of data type expression. Expected List but found String

Custom Function help - Mismatch of data type expression. Expected List but found String

Hi, I am attempting to create a custom function that will create multiple records based off the multi-select pick list values in our potentials module. The function i have so far is this:

new_onboarding = {"Account_Name":accountname,"Owner":"1739380000031784001"};

for each TPAservice in tpa            //tpa is the multi-select pick list argument
{
create_newonboarding = zoho.crm.createRecord("Onboarding", new_onboarding);
}

i get this error when trying to run it:

Mismatch of data type expression. Expected List but found String