开发前必读
概述
开发者使用指南
开发者使用流程
通信说明
开发者工具
更新日志
基础能力接口
获取token接口
外部系统单点登录
单点登录使用说明
获取单点登录用户信息
通讯录管理
获取部门列表
新增部门
修改部门
删除部门
新增用户
修改用户
删除用户
获取用户列表
通讯录变更同步
获取标签信息
新增标签
修改标签
删除标签
获取标签成员列表
添加标签成员
删除标签成员
按部门查询标签
按用户查询标签
离职用户
获取离职信息
用户复职
获取自定列表信息
第三方消息推送
推送文本消息
推送图文消息
推送消息附录
统一消息推送(回调)
图片附件上传
图片附件下载
图片附件单个下载
图片附件批量下载
应用数据接口
表单流程/七巧
新增表单
获取表单模板信息
推送数据
修改表单数据
删除表单数据
数据源
数据回调
导出表单流程数据
获取填写情况详细数据(新)
通过ID获取填写详细数据(新)
流程干预
获取填写情况详细数据(旧)
通过ID获取填写详细数据(旧)
获取应用填写详细数据(待办、已办等)
发票识别接口
发票验真接口
附录
考勤打卡
获取考勤规则列表
获取考勤详细信息
获取考勤日报信息
注册考勤服务
新增虚拟考勤机
删除虚拟考勤机
考勤机打卡
获取考勤排班明细
获取考勤异常申诉记录
请假出差
获取请假信息列表
获取请假类型列表
假期管理
获取请假详情信息
新闻公告
获取新闻动态类型
新增新闻动态
获取新闻列表
获取新闻详情
获取个人新闻列表
费控报销
获取报销信息列表
获取成本中心信息列表
导入成本中心
获取预算明细
获取发票信息列表
获取借款信息列表
获取用户可见范围内成本中心
获取用户可见范围内科目
获取超额预算
费控预算操作
企业用车
获取车辆申请列表
任务分派
获取任务分派信息列表
获取任务类型信息接口
新建任务接口
移动CRM
获取客户信息列表
获取客户字段
新增客户
更新客户
获取客户详情
获取客户类别
获取所有公海池
获取所有行业信息
获取联系人信息列表
获取联系人字段
新增联系人
更新联系人
获取联系人详情
获取商机信息列表
获取商机字段
新增商机
更新商机
获取商机详情
获取商机阶段或商机类型
修改商机阶段
获取拜访信息列表
获取合同信息列表
获取合同字段
新增合同
更新合同
获取合同详情
获取公海池客户信息列表
获取公海池客户详情
培训考试
获取考试成绩列表
获取考试统计信息列表
获取考试人员明细
获取学习统计信息列表
获取个人学习档案信息列表
获取课程统计信息列表
获取课程人员明细
获取个人学分明细
获取讲师信息列表
获取题库试题明细
新增题库试题
删除题库试题
移动外勤
获取签到信息列表
会议管家
获取会议详情
获取会议纪要详情
获取会议室详情
获取区域列表
获取会议室列表
获取会议详情列表

获取客户字段

开发说明

功能说明:获取客户字段
请求方式:POST(HTTPS)
请求地址:https://qwif.do1.com.cn/qwcgi/api/crm/client/getClientFields.do?token=token&corpId=corpId

SDK调用示例:

        CrmApi api = QwSdkUtil.getInter(CrmApi.class);
        // 调用接口
        ApiCrmClientFieldsResultVO result = api.getClientFields(
                QwSdkUtil.getCacheToken());
        System.out.println(JSONUtil.stringify(result));
        

返回结果:

{
    "code":"0",
    "desc":"成功",
    "data":{
        "multiClientSetting":true,
        "basicFields":[
            {
                "fieldName":"clientName",
                "isNecessary":"1",
                "label":"客户名称",
                "sort":"1",
                "type":"TextField"
            },
            {
                "fieldName":"typeIds",
                "isNecessary":"0",
                "label":"客户类别",
                "sort":"2",
                "type":"SelectField"
            },
            {
                "fieldName":"poolId",
                "isNecessary":"1",
                "label":"所属公海",
                "sort":"3",
                "type":"SelectField"
            },
            {
                "fieldName":"region",
                "isNecessary":"0",
                "label":"区域",
                "sort":"4",
                "type":"TextField"
            },
            {
                "fieldName":"address",
                "isNecessary":"0",
                "label":"地址",
                "sort":"5",
                "type":"TextField"
            },
            {
                "fieldName":"industryCodes",
                "isNecessary":"0",
                "label":"行业",
                "sort":"6",
                "type":"TextField"
            },
            {
                "fieldName":"phone",
                "isNecessary":"0",
                "label":"联系电话",
                "sort":"7",
                "type":"PhoneNumber"
            },
            {
                "fieldName":"email",
                "isNecessary":"0",
                "label":"邮箱",
                "sort":"8",
                "type":"Email"
            },
            {
                "fieldName":"website",
                "isNecessary":"0",
                "label":"网站",
                "sort":"9",
                "type":"Email"
            },
            {
                "fieldName":"remark",
                "isNecessary":"0",
                "label":"备注",
                "sort":"10",
                "type":"TextField"
            },
            {
                "fieldName":"chargePersonWxIds",
                "isNecessary":"0",
                "label":"负责人",
                "sort":"11",
                "type":"TextField"
            },
            {
                "fieldName":"relativePersonWxIds",
                "isNecessary":"0",
                "label":"相关人",
                "sort":"12",
                "type":"TextField"
            },
            {
                "fieldName":"submitType",
                "isNecessary":"0",
                "label":"通知类型",
                "sort":"13",
                "type":"TextField"
            }
        ],
        "customFields":[
            {
                "choices":[],
                "customFieldId":"ad3383676ae1090cf39bdc9e6fa20676",
                "isNecessary":"0",
                "label":"单行",
                "type":"TextField",
                "sort":"1",
                "desc":"填写单行内容"
            },
            {
                "choices":[],
                "customFieldId":"ca6a5a5d529348259464c7111be9ef2f",
                "isNecessary":"0",
                "label":"多行",
                "type":"TextArea",
                "sort":"2",
                "desc":"填写多行内容"
            },
            {
                "choices":[
                    {
                        "optionId":"3556a5e73566430ab5ef40d0921adac0",
                        "optionName":"方式1",
                        "sort":"1",
                        "value":"1"
                    },
                    {
                        "optionId":"98ec2968791c431ea04b1ad03c0d7d02",
                        "optionName":"方式2",
                        "sort":"2",
                        "value":"2"
                    },
                    {
                        "optionId":"daad6499a8234fe491f93a93ca0fe38a",
                        "optionName":"方式3",
                        "sort":"3",
                        "value":"3"
                    }
                ],
                "customFieldId":"6cae2f16cd2a67b2b4613b3719527a47Y",
                "isNecessary":"0",
                "label":"支付方式",
                "type":"SelectField",
                "sort":"3",
                "desc":"填写选择选项"
            },
            {
                "choices":[],
                "customFieldId":"442e82087f404c7887bb5ea0c7e091d1",
                "isNecessary":"0",
                "label":"日期",
                "type":"DateTime",
                "sort":"4",
                "desc":"填写日期"
            },
            {
                "choices":[],
                "customFieldId":"fbefd57ca3c84e4494cc8ef5121fe5b4",
                "isNecessary":"0",
                "label":"整数",
                "type":"Number",
                "sort":"5",
                "desc":"填写整数"
            },
            {
                "choices":[],
                "customFieldId":"ae6d11dd437441afbb56f26f7292d0b8",
                "isNecessary":"0",
                "label":"小数",
                "type":"Double",
                "sort":"6",
                "desc":"填写小数,最多保留两位"
            },
            {
                "choices":[],
                "customFieldId":"e247273d18bd49acb41834025f1f6044",
                "isNecessary":"0",
                "label":"百分比",
                "type":"Percent",
                "sort":"7",
                "desc":"填写百分数,带百分号"
            },
            {
                "choices":[],
                "customFieldId":"a2360539f13b4f26a3aa4d2d61d850b4",
                "isNecessary":"0",
                "label":"联系方式",
                "type":"PhoneNumber",
                "sort":"8",
                "desc":"填写电话号码"
            }
        ],
       "seniorFields": [
            {
                "choices": [],
                "fieldId": "fo4acf32007e5742c2ac001dc9a96e2be7",
                "fieldName": "(表单)单行文字",
                "isNecessary": "true",
                "note": "请输入",
                "sort": "1",
                "type": "TextField"
            },
            {
                "choices": [],
                "fieldId": "fo0074c8bb21b943cbb674f75a867e0fac",
                "fieldName": "(表单)邮箱",
                "isNecessary": "false",
                "note": "请输入",
                "sort": "2",
                "type": "EmailField"
            },
            {
                "choices": [],
                "fieldId": "fod3174d0bbc7449c080449c0cbbe6cc86",
                "fieldName": "(表单)数字",
                "isNecessary": "true",
                "note": "请输入",
                "sort": "3",
                "type": "NumberField"
            },
            {
                "choices": [],
                "fieldId": "fo6d502db6136a4a1e821415f383b0ffaa",
                "fieldName": "(表单)电话",
                "isNecessary": "false",
                "note": "分隔请用-或空格,国际电话请加+",
                "sort": "4",
                "type": "TelephoneField"
            },
            {
                "choices": [],
                "fieldId": "foc14e0347f57b40d283324c3b489f5d0f",
                "fieldName": "(表单)手机",
                "isNecessary": "false",
                "note": "请输入",
                "sort": "5",
                "type": "MobileField"
            },
            {
                "choices": [],
                "fieldId": "fof58d5ec766514c53bdb4961110053575",
                "fieldName": "(表单)多行文字",
                "isNecessary": "false",
                "note": "请输入",
                "sort": "6",
                "type": "TextArea"
            },
            {
                "choices": [],
                "fieldId": "fo375dfaeb87b241e681634b7dc8906bee",
                "fieldName": "(表单)日期",
                "isNecessary": "false",
                "note": "请选择",
                "sort": "7",
                "type": "DateField"
            },
            {
                "choices": [],
                "fieldId": "fo855fd02dffc8461d984a12c119730df2",
                "fieldName": "(表单)时间",
                "isNecessary": "false",
                "note": "请选择",
                "sort": "8",
                "type": "TimeField"
            },
            {
                "choices": [],
                "fieldId": "fo9a71a63280374c5b851de2f752d466a9",
                "fieldName": "(表单)日期时间",
                "isNecessary": "false",
                "note": "请选择",
                "sort": "9",
                "type": "DateTimeField"
            },
            {
                "choices": [
                    {
                        "optionId": "foe0cd24dc3f6440ebaf4014cc1506ae3e",
                        "optionName": "选项1",
                        "sort": 1
                    },
                    {
                        "optionId": "fobcb78b055b284d47819e249331d9eed2",
                        "optionName": "选项2",
                        "sort": 2
                    },
                    {
                        "optionId": "foe58efb490f6e4be28d4fdd63e8dac0e1",
                        "optionName": "选项3",
                        "sort": 3
                    }
                ],
                "fieldId": "fo0dec944e2817445787141a96a9922aa2",
                "fieldName": "(表单)单项选择",
                "isNecessary": "false",
                "note": "",
                "sort": "10",
                "type": "RadioButton"
            },
            {
                "choices": [
                    {
                        "optionId": "fo2a53981b22ec4d298b8f43ed41e99a82",
                        "optionName": "选项1",
                        "sort": 1
                    },
                    {
                        "optionId": "foe6b5df849f824a23bc95f48893218192",
                        "optionName": "选项2",
                        "sort": 2
                    },
                    {
                        "optionId": "fo30168fb6ce7d432f88e89858316146d5",
                        "optionName": "选项3",
                        "sort": 3
                    }
                ],
                "fieldId": "foe59e667acacc46799d99e12d1af34fa9",
                "fieldName": "(表单)多项选择",
                "isNecessary": "false",
                "note": "",
                "sort": "11",
                "type": "CheckBox"
            },
            {
                "choices": [
                    {
                        "optionId": "fo81a20466198c43fa87b7592e4db09d8c",
                        "optionName": "选项1",
                        "sort": 1
                    },
                    {
                        "optionId": "fo3ea9316e9eba49dfa816df1dd8441296",
                        "optionName": "选项2",
                        "sort": 2
                    },
                    {
                        "optionId": "fo6735fc627040495088f7de855c0e4020",
                        "optionName": "选项3",
                        "sort": 3
                    }
                ],
                "fieldId": "fobfb40e3e839d441286fce7cb25f30618",
                "fieldName": "(表单)下拉框",
                "isNecessary": "false",
                "note": "",
                "sort": "12",
                "type": "DropDown"
            },
            {
                "choices": [
                    {
                        "optionId": "foe19826c750d042b49eed2edc85f8763f",
                        "optionName": "选项",
                        "sort": 1
                    },
                    {
                        "optionId": "foe1652cf16c4b4c9182eb3a1dcc552e03",
                        "optionName": "选项",
                        "sort": 2
                    },
                    {
                        "optionId": "fo041f54152075400c825098dcdbfff441",
                        "optionName": "选项",
                        "sort": 3
                    }
                ],
                "fieldId": "foa7b53a4b28a841bb8feffbca2efaae42",
                "fieldName": "(表单)评分",
                "isNecessary": "false",
                "note": "",
                "sort": "13",
                "type": "RatingField"
            },
            {
                "choices": [],
                "fieldId": "fo8cad6f5a58ba46558b9431d5204edb2b",
                "fieldName": "(表单)地理位置",
                "isNecessary": "false",
                "note": "",
                "sort": "14",
                "type": "GeoField"
            },
            {
                "choices": [],
                "fieldId": "fo192681ba68204d908e70f81066512a26",
                "fieldName": "(表单)说明项",
                "isNecessary": "false",
                "note": "请输入",
                "sort": "15",
                "type": "ImageCheckBox"
            },
            {
                "choices": [],
                "fieldId": "fo7d684233347749e9916d69469a5963f1",
                "fieldName": "(表单)分节",
                "isNecessary": "false",
                "note": "",
                "sort": "16",
                "type": "SectionBreak"
            },
            {
                "choices": [],
                "fieldId": "fo03a32cded98b45f0802326e78a3422aa",
                "fieldName": "(表单)图片",
                "isNecessary": "false",
                "note": "",
                "sort": "17",
                "type": "ImageField"
            },
            {
                "choices": [],
                "fieldId": "focac8c53ef9344513adf316dd744fcc88",
                "fieldName": "(表单)附件",
                "isNecessary": "false",
                "note": "",
                "sort": "18",
                "type": "AccessoryField"
            },
            {
                "choices": [],
                "fieldId": "fo50ab5879143647ab903b8e57ecd1db44",
                "fieldName": "(表单)省市区",
                "isNecessary": "false",
                "note": "",
                "sort": "19",
                "type": "CityField"
            },
            {
                "choices": [],
                "fieldId": "fo33f8c688a7ee445a9f7c3c0f5fee89cc",
                "fieldName": "(表单)计算式",
                "isNecessary": "false",
                "note": "(表单)数字",
                "sort": "20",
                "type": "EquationField"
            },
            {
                "choices": [
                    {
                        "optionId": "fo6e892337a7f14bd29dab052e61fe9542",
                        "optionName": "选项1:二级选项1",
                        "sort": 1
                    },
                    {
                        "optionId": "fo6e892337a7f14bd29dab052e61fe9542",
                        "optionName": "选项1:二级选项2",
                        "sort": 2
                    },
                    {
                        "optionId": "foe7416257061342888ed9361dce544ef0",
                        "optionName": "选项2:二级选项1",
                        "sort": 3
                    },
                    {
                        "optionId": "foe7416257061342888ed9361dce544ef0",
                        "optionName": "选项2:二级选项2",
                        "sort": 4
                    }
                ],
                "fieldId": "fo4a614a867c60409f814dbd1981f5f13f",
                "fieldName": "(表单)两级下拉框",
                "isNecessary": "false",
                "note": "",
                "sort": "21",
                "type": "CascadeDropDown"
            },
            {
                "choices": [],
                "fieldId": "fofc48b703309d44fa8c02099cafb50638",
                "fieldName": "(表单)微信扫码",
                "isNecessary": "false",
                "note": "",
                "sort": "22",
                "type": "ImageRadioButton"
            },
            {
                "choices": [],
                "fieldId": "fo21d3476b5a4647e584f85f78acf8f1f8",
                "fieldName": "(表单)流水号",
                "isNecessary": "false",
                "note": "请输入",
                "sort": "23",
                "type": "SerialNumberField"
            },
            {
                "choices": [],
                "fieldId": "foe2d99bcf4fc0470b9326c408016a7295",
                "fieldName": "(表单)手写签名",
                "isNecessary": "false",
                "note": "请输入",
                "sort": "24",
                "type": "HandWrittenField"
            },
            {
                "choices": [],
                "fieldId": "fo468250bcf0bb4a949a786b473349c561",
                "fieldName": "(表单)通讯录成员",
                "isNecessary": "false",
                "note": "",
                "sort": "25",
                "type": "MEMBERCustomerField"
            },
            {
                "choices": [],
                "fieldId": "foa2a9b2d6f631454080cdbe2b002af086",
                "fieldName": "(表单)部门",
                "isNecessary": "false",
                "note": "",
                "sort": "26",
                "type": "DEPTCustomerField"
            }
        ]
    }
}

返回参数说明:

data

参数 说明 备注
multiClientSetting 允许添加多客户负责人开关

true:开启,允许填写多个负责人;

false:关闭,只能填一个负责人。

basicFields

基础字段数组

customFields

自定义字段数组


basicField

参数

说明

 备注

fieldName

字段名

 

type

字段类型

TextFieldTextAreaSelectFieldPhoneNumberEmailDateTimeIntegerDoublePercent

label

标签

 

isNecessary

是否必填

1 = 必填,0 = 非必填

sort

排序号


customField

参数

说明

备注 

customFieldId

自定义字段ID

 

type

字段类型

TextFieldTextAreaSelectFieldPhoneNumberDateTimeIntegerDoublePercent

label

标签

 

isNecessary

是否必填

1=必填,0=非必填

sort

排序号

 

choices

选项列表

只有SelectField才有值,其余为[]

desc

填写提示


seniorFields

参数

说明

备注 

fieldId

表单字段ID

 

fieldName

表单字段名称


type

字段类型

TextField(单行文字)、EmailField(邮箱)、NumberField(数字)、TelephoneField(电话)、MobileField(手机)、
TextArea(多行文字)、DateField(日期)、TimeField(时间)、DateTimeField(日期时间)、RadioButton(单项选择)、
CheckBox(多项选择)、DropDown(下拉框)、RatingField(评分)、GeoField(地理位置)、ImageCheckBox(说明项)、
SectionBreak(分节)、ImageField(图片)、AccessoryField(附件)、CityField(省市区)、EquationField(计算式)、
CascadeDropDown(两级下拉框)、ImageRadioButton(微信扫码)、SerialNumberField(流水号)、HandWrittenField(手写签名)、

MEMBERCustomerField(通讯录成员)、DEPTCustomerField(部门)

isNecessary

是否必填

true=必填,false=非必填

sort

排序号

 

choices

选项列表

只有 RadioButton(单项选择)、CheckBox(多项选择)、DropDown(下拉框)、RatingField(评分)、CascadeDropDown(两级下拉框) 才有值,其余为[]

note

填写提示



choice

参数

说明

 备注

optionId

选项ID

 

optionName

选项名

 

sort

排序号

 

value

选项值