zoho.crm.searchRecords Help

zoho.crm.searchRecords Help

Hello

I am trying to write a custom function to return an Account.  

I am using a workflow to pass in a field populated with a string.  I then seatch for an Accounts Record which has a match to the passed in value in the IG Sitecode field.  the below returns invalid parameter...any suggestions?

 

void   FindCompanyRecord_FromSiteCode  ( string SiteCodeOfAsset   )
criteria="( IG Sitecode |=| " + input.SiteCodeOfAsset + ")";
crmresp = zoho.crm.searchRecords(("Accounts"),criteria);
info crmresp;
for each itemreturned in crmresp
{
info itemreturned;
}