Fetch Books Contact ID by searching with form data
I am trying to retrieve the contact id for a customer selected in creator by searching contacts in books using form data as a search parameter. I do not know if it is a syntax error or what else i could be doing wrong. here is the code i am trying to use.
newresp = zoho.books.getrecords("Contacts","12345678","contact_name=input.InvName");
detail = newresp.get("contacts").toJSONList().get(0).toMap();
customer_id = detail.get("contact_id");
info newresp;
Any help would be appreciated.