从钉钉到金蝶云星空通过接口配置打通数据

对接系统钉钉
钉钉是阿里巴巴集团打造的企业级智能移动办公平台,是数字经济时代的企业组织协同办公和应用开发平台。钉钉将IM即时沟通、钉钉文档、钉闪会、钉盘、Teambition、OA审批、智能人事、钉工牌、工作台深度整合,打造简单、高效、安全、智能的数字化未来工作方式,助力企业的组织数字化和业务数字化。
对接目标平台:金蝶云星空
金蝶K/3Cloud在总结百万家客户管理最佳实践的基础上,提供了标准的管理模式;通过标准的业务架构:多会计准则、多币别、多地点、多组织、多税制应用框架等,有效支持企业的运营管理;K/3Cloud提供了标准的业务建模:35种标准ERP领域模型、1046种模型元素、21243种模型元素属性组合,288个业务服务构件,让企业及伙伴可快速构建出行业化及个性化的应用。
数据接口配置
轻易云集成平台的对接是通过一个个对应的对接方案去形成两个系统对接的连线,所以对接方案的配置极其重要,方案可以选择一键复制,轻易云有海量的对接方案可支持一键复制,复制后直接启动使用(对接方案借鉴可以在轻易云系统数据集成交流社区bbs.qeasy.cloud 中找到相关信息。或者可以通过手工配置,配置只要确认源平台:钉钉的取数逻辑,例如什么时间取什么样的数据。即可完成配置,目标平台:金蝶云星空,把获取的数据组装成目标系统需要的格式进行写入。

钉钉接口明细
- API:topapi/processinstance/get
- NAME:获取审批实例详情
- METHOD:POST
请求参数
接口字段 | 字段名称 | 预设值 | 描述 |
process_code | 审批流的唯一码 | PROC-E322578D-5495-41BA-AED7-BBA841056F34 | |
start_time | 审批实例开始时间。Unix时间戳,单位毫秒。 | _function ( {{LAST_SYNC_TIME}} - ( 3600 * 96) ) * 1000 | |
end_time | 审批实例结束时间,Unix时间戳,单位毫秒 | {{CURRENT_TIME}}000 | |
size | 分页参数,每页大小,最多传20。 | 20 | |
cursor | 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值。 | | |
响应参数
接口字段 | 字段名称 | 预设值 | 描述 |
费用归属项目 | 费用归属项目 | | autoFillResponse |
报销类别 | 报销类别 | | _autoFillResponse |
TextNote_7L0ZKXODKW40 | TextNote_7L0ZKXODKW40 | | autoFillResponse |
行政报销类型 | 行政报销类型 | | _autoFillResponse |
项目报销类型 | 项目报销类型 | | autoFillResponse |
报销明细 | 报销明细 | | _autoFillResponse |
报销明细.费用发生日期 | 费用发生日期 | | autoFillResponse |
报销明细.报销金额(元) | 报销金额(元) | | _autoFillResponse |
报销明细.费用明细 | 费用明细 | | autoFillResponse |
报销明细.项目费用明细 | 项目费用明细 | | _autoFillResponse |
报销明细.项目费用明细.componentName | componentName | | autoFillResponse |
报销明细.项目费用明细.componentType | componentType | | _autoFillResponse |
报销明细.项目费用明细.props | props | | autoFillResponse |
报销明细.项目费用明细.总金额 | 总金额 | | _autoFillResponse |
报销明细.项目费用明细.关联审批单 | 关联审批单 | | autoFillResponse |
报销明细.项目费用明细.TextNote-KDE5B2G3 | TextNote-KDE5B2G3 | | _autoFillResponse |
报销明细.项目费用明细.电子发票 | 电子发票 | | autoFillResponse |
报销明细.项目费用明细.收款账号 | 收款账号 | | _autoFillResponse |
报销明细.项目费用明细.公司帐号付款(如需公司帐号付款请选择) | 公司帐号付款(如需公司帐号付款请选择) | | autoFillResponse |
报销明细.项目费用明细.报销凭证拍照上传 | 报销凭证拍照上传 | | _autoFillResponse |
报销明细.项目费用明细.附件 | 附件 | | autoFillResponse |
报销明细.项目费用明细.id | id | | _autoFillResponse |
报销明细.项目费用明细.title | title | | autoFillResponse |
报销明细.项目费用明细.extend | extend | | _autoFillResponse |
报销明细.项目费用明细.extend.create_time | create_time | | autoFillResponse |
报销明细.项目费用明细.extend.finish_time | finish_time | | _autoFillResponse |
报销明细.项目费用明细.extend.originator_userid | originator_userid | | autoFillResponse |
报销明细.项目费用明细.extend.originator_dept_id | originator_dept_id | | _autoFillResponse |
报销明细.项目费用明细.extend.status | status | | autoFillResponse |
报销明细.项目费用明细.extend.result | result | | _autoFillResponse |
报销明细.项目费用明细.extend.business_id | business_id | | autoFillResponse |
报销明细.项目费用明细.extend.originator_dept_name | originator_dept_name | | _autoFillResponse |
报销明细.项目费用明细.extend.biz_action | biz_action | | _autoFillResponse |
金蝶云星空接口明细
- 调用接口:batchSave
- 接口名称:新增付款单
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
FBillNo | 单据编号 | string | {{extend.business_id}} |
FBillTypeID | 单据类型 | string | FKDLX04_SYS |
FDATE | 业务日期 | string | {{extend.create_time}} |
FSETTLEORGID | 结算组织 | string | findCollection find Number from 723e2cb6-f80f-3823-8b4f-6e98b9713ba3 where Name={{费用归属项目}} |
FPAYORGID | 付款组织 | string | _findCollection find Number from 723e2cb6-f80f-3823-8b4f-6e98b9713ba3 where Name={{费用归属项目}} |
FCURRENCYID | 币别 | string | PRE001 |
FCONTACTUNITTYPE | 往来单位类型 | string | BD_Department |
FCONTACTUNIT | 往来单位 | string | {{费用归属部门关联}} |
FRECTUNITTYPE | 收款单位类型 | string | BD_Department |
FRECTUNIT | 收款单位 | string | {{费用归属部门_关联}} |
FREMARK | 备注 | string | {{title}}+{{报销明细.0.费用明细}} |
FSETTLECUR | 结算币别 | string | PRE001 |
FPAYBILLENTRY | 付款单明细 | array | |
FPAYBILLENTRY.FSETTLETYPEID | 结算方式 | string | {{付款方式}} |
FPAYBILLENTRY.FPURPOSEID | 付款用途 | string | SFKYT002 |
FPAYBILLENTRY.FPAYTOTALAMOUNTFOR | 应付金额 | string | {{报销明细.报销金额(元)}} |
FPAYBILLENTRY.FCOSTID | 费用项目 | string | findCollection find FNumber from b02f1e34-b500-3075-8b14-08fec61d08a4 where FName={{业务报销类}} |
FPAYBILLENTRY.FCOMMENT | 备注 | string | {{报销明细.费用明细}} |
FPAYBILLENTRY.FOPPOSITEBANKACCOUNT | 对方银行账号 | string | _function CASE LOCATE('ALIPAY_ACCOUNT','{{收款信息.identityType}}') WHEN 0 THEN '{{收款信息.cardNo}}' ELSE '{{收款信息.logonId}}' END |
FPAYBILLENTRY.FOPPOSITECCOUNTNAME | 对方账户名称 | string | {{收款信息.name}} |
FPAYBILLENTRY.FDepartment | 部门 | string | _findCollection find Number from 400f56e7-e846-35e5-9017-c28fd7303fb0 where Name={{费用归属部门}} |
FPAYBILLENTRY.FormId | 业务对象表单Id | string | AP_PAYBILL |
FPAYBILLENTRY.Operation | 执行的操作 | string | BatchSave |
FPAYBILLENTRY.IsAutoSubmitAndAudit | 提交并审核 | bool | false |
FPAYBILLENTRY.IsVerifyBaseDataField | 验证基础资料 | bool | false |
响应参数
字段 | 字段名称 | 类型 | 配置值 |
callBackStrategy | 回写方案 | object | |
callBackStrategy.strategyId | 方案ID | string | 950d161e-e92d-3d49-9d70-342c1503f694 |
callBackStrategy.id | 审批实例ID | string | {{id}} |
callBackStrategy.business_id | 审批编号 | string | {{extend.business_id}} |
callBackStrategy.name | 收款信息 | string | {{收款信息.name}} |
callBackStrategy.originator_userid | 发起人 | string | {{extend.originator_userid}} |
系统数据对接
全面管控企业的API资产,梳理现有业务系统的API。实现API文档的统一管理,建立API的上线、下线、监控的统一管理体系。API低代码开发平台能够实现低代码或零代码一键发布API服务,很好地解决企业用户上面的问题。轻易云应用集成主要解决已有应用系统的无序蔓延现象,减少各业务系统间的维护成本,减少各应用系统的操作系统、开发语言、访问协议、通信技术多而杂、整合难度大的问题,将企业数据平滑对接,减少信息竖井。

