How to add the purchase order product in another module using Custom Function?

How to add the purchase order product in another module using Custom Function?

Hello there,

We are trying to create a custom function in which on click of a button a custom function is called which consist of an argument as 'puchase_order_id' using that we are reading the purchase order and try to add the product from purchase order to another module as an entry. Here is the code which we are using:

accountID1=input.po_id.toString();
reponse = zoho.crm.getRecordById("PurchaseOrders",(accountID1).toLong());
info reponse;
productDet=ifnull(reponse.get("product"),"");
/******Here we get all product details*******/
productList=productDet.toJSONList();
for each resp in productList
{
   /************Wnat the values of all the products included in the purchase order***************/
    license_name=resp.get("Product Id");

// using the get function giving us the error that Get is not an function.
}

Please help