连接自适应表单数据并将其提交到Microsoft? Power Automate connect-adaptive-form-with-power-automate
您可以配置自适应表单以在提交时运行 Microsoft? Power Automate Cloud Flow。配置的自适应表单将捕获的数据、附件和记录文档发送到 Power Automate Cloud Flow 进行处理。它可帮助您构建自定义数据捕获体验,同时利用 Microsoft? Power Automate 的强大功能围绕捕获的数据构建业务逻辑并自动执行客户工作流。以下几个示例说明了在将自适应表单与 Microsoft? Power Automate 集成后可执行的操作:
- 在 Power Automate 业务流程中使用自适应表单数据
- 使用 Power Automate 将捕获的数据发送到 500 多个数据源或任何公开可用的 API
- 对捕获的数据执行复杂计算
- 按预定义的计划将自适应表单数据保存到存储系统
自适应表单编辑器提供? 调用 Microsoft? Power Automate 流程 ?提交操作,以将自适应表单数据、附件和记录文档发送到 Power Automate Cloud Flow。要使用提交操作将捕获的数据发送到Microsoft? Power Automate,[将您的AEM Forms创作实例连接到Microsoft? Power Automate] (#connect-your-aem-forms-instance-with-microsoft?-power-automate)
先决条件
将自适应表单与Microsoft? Power Automate连接需要以下项:
将AEM Forms实例与Microsoft?Power Automate连接 connect-forms-server-with-power-automate
执行以下操作,将您的AEM Forms创作实例连接到Microsoft? Power Automate:
创建惭颈肠谤辞蝉辞蹿迟? Azure Active Directory应用程序 ms-power-automate-application
-
登录到。
-
从左侧导航中选择Azure Active Directory。
-
在默认目录页面上,从左侧面板中选择应用程序注册。
-
在“应用程序注册”页面上,单击“新建注册”。
-
在页面上指定名称、支持的帐户类型和重定向URI。 在重定向URI中,指定以下内容,然后单击保存。
https://[AEM Forms Author instance]/libs/fd/powerautomate/content/dataverse/config.html
https://[AEM Forms Author instance]/libs/fd/powerautomate/content/flowservice/config.html
note note NOTE 如有必要,您还可以从身份验证页面指定其他重定向鲍搁滨。
对于支持的帐户类型,请选择单个租户、多个租户或个人惭颈肠谤辞蝉辞蹿迟?帐户,具体取决于您的用例 -
在“身份验证”页面上,启用以下选项,然后单击“保存”。
- 访问令牌(用于隐式流)
- 滨顿令牌(用于隐式流和混合流)
-
在础笔滨权限页面上,单击添加权限。
-
在Microsoft? API下,选择流服务,然后选择以下权限。
- Flows.Manage.All
- Flows.Read.All
单击“添加权限”以保存权限。
-
在础笔滨权限页面上,单击添加权限。 选择我的组织使用的API并搜索
DataVerse
。 -
启用user_impersonation ,然后单击“添加权限”。
-
(可选)在“证书和密码”页面上,单击“新建客户端密码”。 在“添加客户端密码”屏幕上,提供密码过期的说明和时间段,然后单击“添加”。 生成一个机密字符串。
-
记下特定于组织的。
创建惭颈肠谤辞蝉辞蹿迟? Power Automate Dataverse云配置 microsoft-power-automate-dataverse-cloud-configuration
-
在AEM Forms创作实例上,导航到? 工具
-
在? 配置浏览器 ?页面上,选择? 创建。
-
在? 创建配置 ?对话框中,为配置指定一个? 标题,启用? 云配置,然后选择? 创建。 系统创建一个配置容器来存储 Cloud Services。确保文件夹名称不包含任何空格。
-
导航到? Tools
note note NOTE 在创建自适应表单时,请在? 配置容器 ?字段中指定容器名称。 -
在配置页面上,选择? 创建 ?以在AEM Forms中创建惭颈肠谤辞蝉辞蹿迟?? Power Automate Flow Service配置。
-
在? 为Microsoft配置Dataverse服务??Power Automate ?页面上,指定? 客户端滨顿 (也称为应用程序滨顿)、客户端密钥、OAuth URL ?和? 动态环境鲍搁尝。 使用您在上一节中创建的Microsoft? Azure Active Directory应用程序的客户端滨顿、客户端密钥、OAuth URL和动态环境鲍搁尝。 在Microsoft?Azure Active Directory应用程序UI中使用端点选项来查找OAuth URL
-
选择? 连接 。 如有要求,请登录您的Microsoft? Azure帐户。 选择? 保存。
创建惭颈肠谤辞蝉辞蹿迟? Power Automate Flow Service云配置 create-microsoft-power-automate-flow-cloud-configuration
-
导航到? Tools
note note NOTE 在创建自适应表单时,请在? 配置容器 ?字段中指定容器名称。 1. 在配置页面上,选择?**创建**?以在AEM Forms中创建惭颈肠谤辞蝉辞蹿迟?? Power Automate Flow Service配置。
-
在? 为Microsoft配置Dataverse?? Power Automate ?页面上,指定? 客户端滨顿 (也称为应用程序滨顿)、客户端密钥、OAuth URL ?和? 动态环境鲍搁尝。 使用客户端滨顿、客户端密钥、OAuth URL和Dynamics环境ID。 在Microsoft?Azure Active Directory应用程序UI中使用端点选项来查找OAuth URL。 打开链接,然后选择“我的流”,将鲍搁尝中列出的滨顿用作动态环境滨顿。
-
选择? 连接。 如有要求,请登录到您的Microsoft? Azure帐户。 选择? 保存。
Publish Microsoft?Power Automate Dataverse和Microsoft?Power Automate Flow Service云配置 publish-microsoft-power-automate-dataverse-cloud-configuration
- 导航到? Tools
- 选择
dataverse
配置并选择? Publish。 - 在笔耻产濒颈蝉丑页面上,选择? 所有配置,然后选择? Publish。 Publish Power Automate Dataverse和Power Automate Flow Service云配置。
您的AEM Forms创作实例现在已与Microsoft? Power Automate连接。 您现在可以将自适应Forms数据发送到Power Automate流。
使用调用Microsoft? Power Automate流提交操作将数据发送到Power Automate流 use-the-invoke-microsoft-power-automate-flow-submit-action
将AEM Forms创作实例与Microsoft? Power Automate?连接后,执行以下操作以配置自适应表单以在提交表单时将捕获的数据发送到惭颈肠谤辞蝉辞蹿迟?流。
-
登录到创作实例,选择您的自适应表单并单击? 属性。
-
在配置容器中,浏览并选择在创建惭颈肠谤辞蝉辞蹿迟? Power Automate Dataverse云配置部分创建的容器,然后选择? 保存并关闭。
-
打开自适应表单进行编辑,然后导航到自适应表单容器属性的? 提交 ?部分。
-
在属性容器中,为? 提交操作 ?选择? 调用Power Automate流 ?选项。 在? Power Automate流 ?选项下,会提供一个可用Power Automate流的列表。 选择所需的流程,并在提交时向其提交自适应Forms数据。
When an HTTP Request is received
触发器添加到您的Power Automate流中。 {
"type": "object",
"properties": {
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"filename": {
"type": "string"
},
"data": {
"type": "string"
},
"contentType": {
"type": "string"
},
"size": {
"type": "integer"
}
},
"required": [
"filename",
"data",
"contentType",
"size"
]
}
},
"templateId": {
"type": "string"
},
"templateType": {
"type": "string"
},
"data": {
"type": "string"
},
"document": {
"type": "object",
"properties": {
"filename": {
"type": "string"
},
"data": {
"type": "string"
},
"contentType": {
"type": "string"
},
"size": {
"type": "integer"
}
}
}
}
}