我是按照官方文档:https://open.dingtalk.com/document/orgapp-server/formdata-structure-description-for-returned-form-instances 进行服务端开发,以下是我传给宜搭的数据格式
{
"radioField_lam9q83x_id": "disabled",
"selectField_la0oze4t_id": "1",
"selectField_l9qf3byy_id": "0",
"radioField_lam9q83v_id": "disabled",
"textField_l75lkp2s": "OD",
"selectField_lb4n39p4": "无",
"radioField_lam9q83z_id": "disabled",
"selectField_l74ppv37_id": "1",
"selectField_l9w6viia_id": "件",
"selectField_l74ppv35_id": "M",
"cascadeSelectField_l773a9oz": [
"连衣裙",
"梭织连衣裙"
],
"selectField_l74ppv37": "第一波",
"selectField_l74ppv35": "夏",
"radioField_lam9q83t_id": "disabled",
"selectField_l75lkp2o": "吴沛衍",
"textField_l74ppv39": "连衣裙",
"radioField_lam9q83y_id": "disabled",
"textField_l74ppv38": "OD23ML7046",
"selectField_l9w6viia": "件",
"radioField_lam9q83w_id": "4",
"selectField_lb4n39p4_id": "无",
"selectField_l75lkp2m_id": "2C",
"selectField_l77d9e5i_id": "W",
"selectField_l9qf3byy": "未大货",
"radioField_lam9q83w": "M",
"cascadeSelectField_l773a9oz_id": [
"L",
"43"
]
}
我调用宜搭获取表单数据接口的返回结构:
{
"formData": {
"radioField_lam9q83x_id": "无",
"selectField_l9qf3byy_id": "未大货",
"radioField_lam9q83v_id": "无",
"selectField_lb4n39p4": "无",
"textField_l75lkp2s": "OD",
"radioField_lam9q83z_id": "无",
"textField_l75lkp2q": "",
"selectField_l74ppv37_id": "第一波",
"selectField_l9w6viia_id": "件",
"selectField_l74ppv35_id": "夏",
"cascadeSelectField_l773a9oz": [
"null",
"null"
],
"selectField_l74ppv37": "第一波",
"numberField_l9w75awr_value": "",
"selectField_l74ppv35": "夏",
"radioField_lam9q83t_id": "无",
"textField_l74ppv39": "连衣裙",
"selectField_l75lkp2o": "吴沛衍",
"radioField_lam9q83y_id": "无",
"textField_l74ppv38": "OD23ML7046",
"numberField_l9w75aws_value": "",
"selectField_l9w6viia": "件",
"radioField_lam9q83w_id": "M",
"associationFormField_la0ohs6o_id": "\"[]\"",
"selectField_lb4n39p4_id": "无",
"selectField_l77d9e5i_id": "梭织部",
"selectField_l9qf3byy": "未大货",
"radioField_lam9q83w": "M",
"cascadeSelectField_l773a9oz_id": [
"连衣裙",
"梭织连衣裙"
]
},
"formInstId": "FINST-DK866Z91ZXV69R0S6Y6A4ALQ4T7Q2AKOVR8CLXN7",
"modifiedTimeGMT": "2022-12-29T15:36Z",
"originator": {
"name": {
"nameInChinese": "宜搭平台",
"nameInEnglish": "yida",
"type": "i18n"
},
"userId": "yida_pub_account"
}
}
我的问题是:
你可以参考如何调用服务端API,详见下面链接: https://open.dingtalk.com/document/orgapp-server/how-to-call-apis
调用接口传入参数保存后查询到的数据和传入的数据不一致的问题,建议可以直接咨询在线售后技术支持,调取调用日志排查具体问题,理论上阿里的文档算是写的准确的了,如果确实是文档与接口不符的话,也能及时让官方修正。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。