洛云数科
用户2354
添加快捷方式
分享
飞书审批小程序外部跳转链接
输入“/”快速插入内容
飞书
审批小程序外部跳转链接
飞书审批
app_id
💡
假如租户A是
飞书
体系租户,在国内和海外均有审批用户,使用的app_id是cli_9cb844403dbb9108。
小程序跳转用
API
https://open.feishu.cn/document/ukTMukTMukTM/ukzN4IjL5cDOy4SO3gjM
其他小程序跳转到飞书审批小程序
https://applink.feishu.cn/client/mini_program/open?mode=appCenter&appId=cli_9cb844403dbb9108&width=1136&height=750&path=pc%2Fpages%2Fin-process%2Findex
打开审批PC小程序首页
代码块
JavaScript
tt.openSchema({
schema: "
https://applink.feishu.cn/client/mini_program/open?mode=appCenter&appId=cli_9cb844403dbb9108&width=1136&height=750&path=pc%2Fpages%2Fin-process%2Findex
",
external: true,
success(res) {
console.log(JSON.stringify(res));
},
fail(res) {
console.log(`openSchema fail: ${JSON.stringify(res)}`);
}
});
常用跳转页面路径及必填参数
审批实例code的获取
请参考
https://open.feishu.cn/document/ukTMukTMukTM/uEDNyUjLxQjM14SM0ITN
审批定义
id
的获取
目前审批前台(
用户端
)暂不支持审批定义code,审批定义
id
可以通过审批管理后台打开某个审批的编辑页,从url中获取:
移动端
•
审批单详情页:pages/detail/index?instanceId=${审批实例id或实例code}
•
审批发起表单:pages/approval-form/index?id=${审批定义id}
•
申请中心页:pages/create-list/index
PC侧边栏
•
审批单详情页:pages/detail/index?instanceId=${审批实例id或实例code}
PC应用中心
跳转链接
注意
,具体页面的路径必须encode,如:
pages/detail/index?instanceId=123 → pages%2Fdetail%2Findex%3FinstanceId%3D123
1、Applink(飞书3.8以上版本支持)
如果对接方对飞书兼容性没有要求,或者不需要向后兼容,可使用这种方式,参考开放平台文档:
https://open.feishu.cn/document/uYjL24iN/ucjN1UjL3YTN14yN2UTN
【注意1】
applink
不区分staging环境
也就是说,飞书staging环境和正式环境一样,都要用
https://applink.feishu.cn
,而不是
https://applink.feishu-staging.cn
海外环境同理,都使用
https://applink.larksuite.com
移动端示例:
审批单详情页:
代码块
Apache
https://applink.feishu.cn/client/mini_program/open?appId=【替换对应环境的app_id】&path=pages%2Fdetail%2Findex%3FinstanceId%3D【替换审批实例code】【替换审批实例code】
审批表单页(发起页):