【发布时间】:2021-09-30 15:31:38
【问题描述】:
我正在我们的 Office365 环境(Word 模板、SharePoint 等)中开发一个自动化的文档准备流程,并且正在使用 Power Apps 和 Power Automate 准备和发送文档以通过 Docusign 进行身份验证签名。我不想使用“开箱即用”的 Docusign Power Automate 连接器,因为我需要在我的 Power Apps 解决方案中调用一些更高级的 Docusign 功能。
我已经成功地在 Power Apps 和 Power Automate 中使用 REST API 功能和 Docusign 开发了我自己的自定义连接器,并成功完成了 Oauth2 用户身份验证,并能够创建信封并将文档发送给单个收件人以供签名。
我的问题是我想使用 V2.1 文档 REST API 标准将文档发送给多个收件人,但是,我似乎遇到了 Power Apps 中的自定义连接器的问题/Power 自动化。
为了确保我有一个正确构建的 JSON 列表,我使用内置的 Docusign API 开发环境将文档连同文档锚标签一起发送给多个收件人。它运行正常并生成以下 JSON 代码:
{
"documents": [
{
"applyAnchorTabs": "True",
"documentBase64": "<Base64BytesHere>",
"documentId": "1",
"fileExtension": "txt",
"name": "NDA Agreement",
"pages": "3"
}
],
"emailSubject": "Testing Docusign",
"recipients": {
"signers": [
{
"email": "wilson.smith@email.com",
"name": "Wilson Smith",
"recipientId": "1",
"roleName": "Vice President",
"routingOrder": "1",
"tabs": {
"signHereTabs": [
{
"documentId": "1",
"pageNumber": "3",
"tabLabel": "CompanySigner"
}
]
}
},
{
"email": "john.doe@gemail.com",
"name": "John Doe",
"recipientId": "2",
"roleName": "President",
"routingOrder": "2",
"tabs": {
"signHereTabs": [
{
"documentId": "1",
"pageNumber": "3",
"tabLabel": "RecipientSignature"
}
]
}
}
]
},
"status": "Sent"
}
我将其用作示例负载,以导入自定义连接器定义页面的请求部分:
Request section of Definition Page in Power Automate Custom Connector
这导致在请求部分中开发了一个“正文”。打开 REQUEST 的 BODY 部分会显示以下元素:
Body of Request after importing JSON payload
可以看出,JSON 有效负载中仅列出了单个收件人的元素。
进一步确认,当你去测试Custom Connector时,测试页面如下:
测试页面成功执行,但它只发送给一个收件人。它没有确定需要发送给多个收件人。
我推测 Microsoft 自定义连接器不支持 REST V2.1,这是一个限制。如果对此有解决方法,我将不胜感激。
谢谢。
【问题讨论】:
标签: docusignapi