获取选择列表参考值

获取选择列表参考值

1、函数样例:
Leads = zoho.crm.getRecordById("Leads",id);
Lead_Status = Leads.get("Lead_Status");
info "字段值:" + Lead_Status ;
leads = invokeurl
[
 type :GET
 connection:"cnuser"
];
// info leads;
for each  field in leads.get("fields")
{
 if(field.get("api_name") == "Lead_Status")
 {
  for each  pick_list_value in field.get("pick_list_values")
  {
if ( pick_list_value.get("display_value") == Lead_Status ) 
        {
info "参考值:" + pick_list_value.get("reference_value");
        }
  }
 }
}

2、连接器: