You can get records from a CRM module in Zoho Creator form using the getRecordById() task.
Syntax
crmResp = zoho.crm.getRecordById(<ModuleName>, <record id>);
where,
<ModuleName> is the name of the CRM module from which you want to fetch the related records. For example, to fetch record from module "Leads",
<RecordID> is the ID in CRM based on which the records related to the ID are fetched
<crmResp> is the map variable returned by CRM as response.
crmResp = zoho.crm.getRecordById("Leads", 231356000000121001);
[
{"Lead Owner":"Test","Phone":"34567","LEADID":"231356000000121001","Country":"country","City":"city",
"Created By":"test","No of Employees":"0","MODIFIEDBY":"231356000000034003","Annual Revenue":"0","Email":
"test@gmail.com","Created Time":"2012-03-12 18:33:48","Modified By":"sampleapp","SMOWNERID":"231356000000
034003","SMCREATORID":"231356000000034003","Email Opt Out":"false","Company":"test","Last Name":"test","First
Name":"test","Modified Time":"2012-03-12 18:33:48"}
]
Note:
You can define the getrecordbyid() task using Script Builder by following the steps given below: