i pass from postman the json body as raw in REST API OF ZOHO.I am getting the json body in the field of the crm but not able to fetch in my inside my rest api function.
SAMPLE JSON DATA
{"data": [
{
"lang": "2",
"First_Name": "sam",
"Last_Name": "waachu",
"option": "1",
"Company": "abhisans",
"State": "UP",
}
]}
I want to fetch data in separate fields of crm.
Example:-lang-2 in one crm field,First_Name - sam in another crm field.
MY CODE:-
LEAD_ID-xxxxxxxxxxxxxxxxxx;
response = crmAPIRequest.toJSONList();
response1 = response.get(0).get("body");
Create_Map = Map();
Create_Map.put("DMS_Data",response1);
createrec = zoho.crm.updateRecord("Leads",Lead_id,Create_Map);
info createrec;
return crmAPIRequest;
Above function,gives all json data in one field.
but inside the deluge can not able to get the data from info command.
OUTPUT:
HOW TO GET BODY INSIDE FUNCTION FROM DELUGE!!