单个记录API
获取一个特定记录
目的
获取特定实体或记录。
请求URL
https://www.zohoapis.com.cn/crm/v2/{module_api_name}/{record_id}
module_api_name - 模块的API名称
record_id - 记录的唯一ID
支持的模块 |
---|
线索,客户,联系人,商机,市场活动,任务,服务支持,事件,通话,解决方案,产品,供货商,价格表,报价单,销售订单,采购订单,发货单,自定义模块,备注和活动 |
请求方法
GET
范围
scope=ZohoCRM.modules.all
(或)
scope=ZohoCRM.modules.{module_name}.{operation_type}
可能的模块名称 | 可能的操作类型 |
---|---|
线索,客户,联系人,商机,市场活动,任务,服务支持,事件,通话,解决方案,产品,供货商,价格表,报价单,销售订单,采购订单,发货单,自定义模块,备注,审批和活动 | ALL - 完全访问记录 READ - 获取模块中的记录 |
备注:
在响应的JSON对象中也可以获得子表单的详细信息。
子表单明细显示为您创建的子表单的API名称。例如,如果子表单名是“subform1”,则响应中的API名是“Sub_form1”。
参考响应结构了解有关JSON键、值及其描述的详细信息。
示例属性
属性 | 示例 |
---|---|
单行 | "Single_Line_1": "这是一个单行", |
多行 | "Multi_Line_1": "这是第一行 \n 这是第二行", |
邮箱 | "Email_1": "p.boyle@zylker.com", |
电话 | "Phone_1": "9900000000", |
选择列表 | "Picklist_1" : "In Progress", |
多选列表 | "Multi-Select_Picklist" : [ "{Option_1}", "{Option_2}", "{Option_3}" ], |
日期 | "Date_1": "2017-08-16", |
日期/时间 | "Date_Time": "2017-08-16T14:32:23+05:30", |
数字 | "Number_1": 575, |
货币 | "Currency_1": 250000, |
小数 | "Decimal_1": 250000.50, |
百分比 | ""Percent_1": 25, |
长整型 | "Long_Integer_1": "250000000000000", |
复选框 | "Checkbox_1": false, |
URL | URL_1": "https://www.zoho.com.cn/crm", |
查找 | "Lookup" : { "name" : "James" "id" : "425248000000104001" }, |
记录所有者 | "Owner": { "name" : "Patricia" "id": "425248000000104003" }, |
布局 | "Layout": { "name" : "Custom Layout 1" "id": "425248000000404433" }, |
自动编号 | "Auto_Number_1": "LEAD44N", 在这里,LEAD - 前缀, 44 - 分配的数字, N - 后缀。 |
示例请求
在下面的示例中,将检索ID为"410888000000698006"的线索记录。
curl "https://www.zohoapis.com.cn/crm/v2/Leads/410888000000698006"
-X GET
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
示例响应
{
"data": [
{
"Company": "Villa Margarita",
"Email": "brian@villa.com",
"Last_Activity_Time": "2016-08-09T16:27:05+05:30",
"Industry": null,
"$converted": false,
"Exchange_Rate": 1,
"Currency": "INR",
"Date_2": null,
"Street": null,
"Zip_Code": null,
"id": "410888000000698006",
"$approved": true,
"$approval": {
"delegate": false,
"approve": false,
"reject": false
},
"Date_Time": null,
"Created_Time": "2016-08-09T16:27:05+05:30",
"$followed": false,
"Owner": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"City": null,
"No_of_Employees": 50,
"State": "Texas",
"Country": null,
"Created_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Annual_Revenue": 0,
"Secondary_Email": null,
"Description": null,
"Decimal_1": null,
"Website": null,
"Twitter": null,
"Salutation": null,
"First_Name": "Brian",
"Lead_Status": null,
"Modified_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Skype_ID": null,
"Phone": null,
"Picks3": null,
"Picks2": null,
"Email_Opt_Out": false,
"Date_Time_2": null,
"Long_Integer_1": null,
"Designation": null,
"Date_Testing": null,
"Modified_Time": "2016-08-09T16:27:05+05:30",
"Pick_List_2": null,
"Picks1": null,
"$converted_detail": {},
"Pick_List_1": null,
"Mobile": null,
"Subform_1": [
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "3",
"Last_Activity_Time": null,
"Name_of_the_product": "Bandages",
"Vendor_Email": "d.collins@ebspharma.com",
"$process_flow": false,
"Price": 15,
"id": "2883756000000458386",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "2",
"Last_Activity_Time": null,
"Name_of_the_product": "Syringes",
"Vendor_Email": "d.collins@ebcpharma.com",
"$process_flow": false,
"Price": 25,
"id": "2883756000000458384",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:26:31+05:30",
"$followed": false,
"Quantity": 50,
"$editable": true,
"Name": "1",
"Last_Activity_Time": "2018-03-23T11:52:49+05:30",
"Name_of_the_product": "Fans",
"Vendor_Email": "d.sierra@zylker.com",
"$process_flow": false,
"Price": 150,
"id": "2883756000000458344",
"$approved": true
}
],
"Last_Name": "Dolan",
"Layout": {
"name": "Standard",
"id": "410888000000380037"
},
"Auto_Number_1": "Test628Test",
"Lead_Source": null,
"Formula_1": 5,
"Fax": null,
"Lookup_1": null
}
]
}
示例请求
ZCRMModule module = ZCRMModule.getInstance("Products");//模块API名称
APIResponse response = module.getRecord(1234567890l);//record id
ZCRMRecord record = (ZCRMRecord) response.getData();
示例响应
{
"data": [
{
"Company": "Villa Margarita",
"Email": "brian@villa.com",
"Last_Activity_Time": "2016-08-09T16:27:05+05:30",
"Industry": null,
"$converted": false,
"Exchange_Rate": 1,
"Currency": "INR",
"Date_2": null,
"Street": null,
"Zip_Code": null,
"id": "410888000000698006",
"$approved": true,
"$approval": {
"delegate": false,
"approve": false,
"reject": false
},
"Date_Time": null,
"Created_Time": "2016-08-09T16:27:05+05:30",
"$followed": false,
"Owner": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"City": null,
"No_of_Employees": 50,
"State": "Texas",
"Country": null,
"Created_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Annual_Revenue": 0,
"Secondary_Email": null,
"Description": null,
"Decimal_1": null,
"Website": null,
"Twitter": null,
"Salutation": null,
"First_Name": "Brian",
"Lead_Status": null,
"Modified_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Skype_ID": null,
"Phone": null,
"Picks3": null,
"Picks2": null,
"Email_Opt_Out": false,
"Date_Time_2": null,
"Long_Integer_1": null,
"Designation": null,
"Date_Testing": null,
"Modified_Time": "2016-08-09T16:27:05+05:30",
"Pick_List_2": null,
"Picks1": null,
"$converted_detail": {},
"Pick_List_1": null,
"Mobile": null,
"Subform_1": [
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "3",
"Last_Activity_Time": null,
"Name_of_the_product": "Bandages",
"Vendor_Email": "d.collins@ebspharma.com",
"$process_flow": false,
"Price": 15,
"id": "2883756000000458386",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "2",
"Last_Activity_Time": null,
"Name_of_the_product": "Syringes",
"Vendor_Email": "d.collins@ebcpharma.com",
"$process_flow": false,
"Price": 25,
"id": "2883756000000458384",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:26:31+05:30",
"$followed": false,
"Quantity": 50,
"$editable": true,
"Name": "1",
"Last_Activity_Time": "2018-03-23T11:52:49+05:30",
"Name_of_the_product": "Fans",
"Vendor_Email": "d.sierra@zylker.com",
"$process_flow": false,
"Price": 150,
"id": "2883756000000458344",
"$approved": true
}
],
"Last_Name": "Dolan",
"Layout": {
"name": "Standard",
"id": "410888000000380037"
},
"Auto_Number_1": "Test628Test",
"Lead_Source": null,
"Formula_1": 5,
"Fax": null,
"Lookup_1": null
}
]
}
示例请求
$apiResponse=ZCRMModule::getInstance('Leads')->getRecord(410405000001519001); // 410405000001519001 - 线索ID
$record=$apiResponse->getData();
echo $record->getEntityId();
echo $record->getModuleApiName();
echo $record->getLookupLabel();
echo $record->getCreatedBy()->getId();
echo $record->getModifiedBy()->getId();
echo $record->getOwner()->getId();
echo $record->getCreatedTime();
echo $record->getModifiedTime();
$map=$record->getData();
foreach ($map as $key=>$value)
{
if($value instanceof ZCRMRecord)
{
echo "\n".$value->getEntityId().":".$value->getModuleApiName().":".$value->getLookupLabel();
}
else
{
echo $key.":".$value;
}
}
示例响应
{
"data": [
{
"Company": "Villa Margarita",
"Email": "brian@villa.com",
"Last_Activity_Time": "2016-08-09T16:27:05+05:30",
"Industry": null,
"$converted": false,
"Exchange_Rate": 1,
"Currency": "INR",
"Date_2": null,
"Street": null,
"Zip_Code": null,
"id": "410888000000698006",
"$approved": true,
"$approval": {
"delegate": false,
"approve": false,
"reject": false
},
"Date_Time": null,
"Created_Time": "2016-08-09T16:27:05+05:30",
"$followed": false,
"Owner": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"City": null,
"No_of_Employees": 50,
"State": "Texas",
"Country": null,
"Created_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Annual_Revenue": 0,
"Secondary_Email": null,
"Description": null,
"Decimal_1": null,
"Website": null,
"Twitter": null,
"Salutation": null,
"First_Name": "Brian",
"Lead_Status": null,
"Modified_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Skype_ID": null,
"Phone": null,
"Picks3": null,
"Picks2": null,
"Email_Opt_Out": false,
"Date_Time_2": null,
"Long_Integer_1": null,
"Designation": null,
"Date_Testing": null,
"Modified_Time": "2016-08-09T16:27:05+05:30",
"Pick_List_2": null,
"Picks1": null,
"$converted_detail": {},
"Pick_List_1": null,
"Mobile": null,
"Subform_1": [
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "3",
"Last_Activity_Time": null,
"Name_of_the_product": "Bandages",
"Vendor_Email": "d.collins@ebspharma.com",
"$process_flow": false,
"Price": 15,
"id": "2883756000000458386",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "2",
"Last_Activity_Time": null,
"Name_of_the_product": "Syringes",
"Vendor_Email": "d.collins@ebcpharma.com",
"$process_flow": false,
"Price": 25,
"id": "2883756000000458384",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:26:31+05:30",
"$followed": false,
"Quantity": 50,
"$editable": true,
"Name": "1",
"Last_Activity_Time": "2018-03-23T11:52:49+05:30",
"Name_of_the_product": "Fans",
"Vendor_Email": "d.sierra@zylker.com",
"$process_flow": false,
"Price": 150,
"id": "2883756000000458344",
"$approved": true
}
],
"Last_Name": "Dolan",
"Layout": {
"name": "Standard",
"id": "410888000000380037"
},
"Auto_Number_1": "Test628Test",
"Lead_Source": null,
"Formula_1": 5,
"Fax": null,
"Lookup_1": null
}
]
}
示例请求
def get_record(self):
try:
#record=ZCRMRecord.get_instance('Leads',440872000000219003)#440872000000219003 is leadid
record=ZCRMRecord.get_instance('Invoices',1386586000000803061)
resp=record.get()
print resp.status_code
print resp.data.entity_id
print resp.data.created_by.id
print resp.data.modified_by.id
print resp.data.owner.id
print resp.data.created_by.name
print resp.data.created_time
print resp.data.modified_time
print resp.data.get_field_value('Email')
print resp.data.get_field_value('Last_Name')
#print resp.data.field_data
if resp.data.line_items is not None:
for line_item in resp.data.line_items:
print "::::::LINE ITEM DETAILS::::::"
print line_item.id
print line_item.product.lookup_label
print line_item.product.get_field_value('Product_Code')
print line_item.product.entity_id
print line_item.list_price
print line_item.quantity
print line_item.description
print line_item.total
print line_item.discount
print line_item.discount_percentage
print line_item.total_after_discount
print line_item.tax_amount
print line_item.net_total
print line_item.delete_flag
if line_item.line_tax is not None:
for tax in line_item.line_tax:
print ":::::: TAX DETAILS ::::::"
print tax.name
print tax.value
print tax.percentage
except ZCRMException as ex:
print ex.status_code
print ex.error_message
print ex.error_code
print ex.error_details
print ex.error_content
示例响应
{
"data": [
{
"Company": "Villa Margarita",
"Email": "brian@villa.com",
"Last_Activity_Time": "2016-08-09T16:27:05+05:30",
"Industry": null,
"$converted": false,
"Exchange_Rate": 1,
"Currency": "INR",
"Date_2": null,
"Street": null,
"Zip_Code": null,
"id": "410888000000698006",
"$approved": true,
"$approval": {
"delegate": false,
"approve": false,
"reject": false
},
"Date_Time": null,
"Created_Time": "2016-08-09T16:27:05+05:30",
"$followed": false,
"Owner": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"City": null,
"No_of_Employees": 50,
"State": "Texas",
"Country": null,
"Created_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Annual_Revenue": 0,
"Secondary_Email": null,
"Description": null,
"Decimal_1": null,
"Website": null,
"Twitter": null,
"Salutation": null,
"First_Name": "Brian",
"Lead_Status": null,
"Modified_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Skype_ID": null,
"Phone": null,
"Picks3": null,
"Picks2": null,
"Email_Opt_Out": false,
"Date_Time_2": null,
"Long_Integer_1": null,
"Designation": null,
"Date_Testing": null,
"Modified_Time": "2016-08-09T16:27:05+05:30",
"Pick_List_2": null,
"Picks1": null,
"$converted_detail": {},
"Pick_List_1": null,
"Mobile": null,
"Subform_1": [
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "3",
"Last_Activity_Time": null,
"Name_of_the_product": "Bandages",
"Vendor_Email": "d.collins@ebspharma.com",
"$process_flow": false,
"Price": 15,
"id": "2883756000000458386",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "2",
"Last_Activity_Time": null,
"Name_of_the_product": "Syringes",
"Vendor_Email": "d.collins@ebcpharma.com",
"$process_flow": false,
"Price": 25,
"id": "2883756000000458384",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:26:31+05:30",
"$followed": false,
"Quantity": 50,
"$editable": true,
"Name": "1",
"Last_Activity_Time": "2018-03-23T11:52:49+05:30",
"Name_of_the_product": "Fans",
"Vendor_Email": "d.sierra@zylker.com",
"$process_flow": false,
"Price": 150,
"id": "2883756000000458344",
"$approved": true
}
],
"Last_Name": "Dolan",
"Layout": {
"name": "Standard",
"id": "410888000000380037"
},
"Auto_Number_1": "Test628Test",
"Lead_Source": null,
"Formula_1": 5,
"Fax": null,
"Lookup_1": null
}
]
}
示例请求
语法:
zoho.crm.getRecordById(<module String>,<recordID Long>,<connectionName String>,<userAccess Boolean>);
mandatory : module,recordID
示例请求:
resp = zoho.crm.getRecordById("Price_Books", 410888000000673626);
示例响应
{
"data": [
{
"Company": "Villa Margarita",
"Email": "brian@villa.com",
"Last_Activity_Time": "2016-08-09T16:27:05+05:30",
"Industry": null,
"$converted": false,
"Exchange_Rate": 1,
"Currency": "INR",
"Date_2": null,
"Street": null,
"Zip_Code": null,
"id": "410888000000698006",
"$approved": true,
"$approval": {
"delegate": false,
"approve": false,
"reject": false
},
"Date_Time": null,
"Created_Time": "2016-08-09T16:27:05+05:30",
"$followed": false,
"Owner": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"City": null,
"No_of_Employees": 50,
"State": "Texas",
"Country": null,
"Created_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Annual_Revenue": 0,
"Secondary_Email": null,
"Description": null,
"Decimal_1": null,
"Website": null,
"Twitter": null,
"Salutation": null,
"First_Name": "Brian",
"Lead_Status": null,
"Modified_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Skype_ID": null,
"Phone": null,
"Picks3": null,
"Picks2": null,
"Email_Opt_Out": false,
"Date_Time_2": null,
"Long_Integer_1": null,
"Designation": null,
"Date_Testing": null,
"Modified_Time": "2016-08-09T16:27:05+05:30",
"Pick_List_2": null,
"Picks1": null,
"$converted_detail": {},
"Pick_List_1": null,
"Mobile": null,
"Subform_1": [
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "3",
"Last_Activity_Time": null,
"Name_of_the_product": "Bandages",
"Vendor_Email": "d.collins@ebspharma.com",
"$process_flow": false,
"Price": 15,
"id": "2883756000000458386",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "2",
"Last_Activity_Time": null,
"Name_of_the_product": "Syringes",
"Vendor_Email": "d.collins@ebcpharma.com",
"$process_flow": false,
"Price": 25,
"id": "2883756000000458384",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:26:31+05:30",
"$followed": false,
"Quantity": 50,
"$editable": true,
"Name": "1",
"Last_Activity_Time": "2018-03-23T11:52:49+05:30",
"Name_of_the_product": "Fans",
"Vendor_Email": "d.sierra@zylker.com",
"$process_flow": false,
"Price": 150,
"id": "2883756000000458344",
"$approved": true
}
],
"Last_Name": "Dolan",
"Layout": {
"name": "Standard",
"id": "410888000000380037"
},
"Auto_Number_1": "Test628Test",
"Lead_Source": null,
"Formula_1": 5,
"Fax": null,
"Lookup_1": null
}
]
}
示例请求
ZCRMModule moduleIns = ZCRMModule.GetInstance("Products"); //模块API名称
APIResponse response = moduleIns.GetRecord(3372164000000190001); //3372164000000190001是记录ID
ZCRMRecord record = (ZCRMRecord)response.Data;
示例响应
{
"data": [
{
"Company": "Villa Margarita",
"Email": "brian@villa.com",
"Last_Activity_Time": "2016-08-09T16:27:05+05:30",
"Industry": null,
"$converted": false,
"Exchange_Rate": 1,
"Currency": "INR",
"Date_2": null,
"Street": null,
"Zip_Code": null,
"id": "410888000000698006",
"$approved": true,
"$approval": {
"delegate": false,
"approve": false,
"reject": false
},
"Date_Time": null,
"Created_Time": "2016-08-09T16:27:05+05:30",
"$followed": false,
"Owner": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"City": null,
"No_of_Employees": 50,
"State": "Texas",
"Country": null,
"Created_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Annual_Revenue": 0,
"Secondary_Email": null,
"Description": null,
"Decimal_1": null,
"Website": null,
"Twitter": null,
"Salutation": null,
"First_Name": "Brian",
"Lead_Status": null,
"Modified_By": {
"name": "Patricia Boyle",
"id": "410888000000086001"
},
"Skype_ID": null,
"Phone": null,
"Picks3": null,
"Picks2": null,
"Email_Opt_Out": false,
"Date_Time_2": null,
"Long_Integer_1": null,
"Designation": null,
"Date_Testing": null,
"Modified_Time": "2016-08-09T16:27:05+05:30",
"Pick_List_2": null,
"Picks1": null,
"$converted_detail": {},
"Pick_List_1": null,
"Mobile": null,
"Subform_1": [
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "3",
"Last_Activity_Time": null,
"Name_of_the_product": "Bandages",
"Vendor_Email": "d.collins@ebspharma.com",
"$process_flow": false,
"Price": 15,
"id": "2883756000000458386",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:52:49+05:30",
"$followed": false,
"Quantity": 500,
"$editable": true,
"Name": "2",
"Last_Activity_Time": null,
"Name_of_the_product": "Syringes",
"Vendor_Email": "d.collins@ebcpharma.com",
"$process_flow": false,
"Price": 25,
"id": "2883756000000458384",
"$approved": true
},
{
"$approval": {
"delegate": false,
"approve": false,
"reject": false,
"resubmit": false
},
"Owner": {
"name": "Patricia Boyle",
"id": "2883756000000133013"
},
"Modified_Time": "2018-03-23T11:52:49+05:30",
"$currency_symbol": "$",
"Created_Time": "2018-03-23T11:26:31+05:30",
"$followed": false,
"Quantity": 50,
"$editable": true,
"Name": "1",
"Last_Activity_Time": "2018-03-23T11:52:49+05:30",
"Name_of_the_product": "Fans",
"Vendor_Email": "d.sierra@zylker.com",
"$process_flow": false,
"Price": 150,
"id": "2883756000000458344",
"$approved": true
}
],
"Last_Name": "Dolan",
"Layout": {
"name": "Standard",
"id": "410888000000380037"
},
"Auto_Number_1": "Test628Test",
"Lead_Source": null,
"Formula_1": 5,
"Fax": null,
"Lookup_1": null
}
]
}