gpt4 book ai didi

azure - 在 Azure 中获得批准后触发管道

转载 作者:行者123 更新时间:2023-12-03 02:10:35 25 4
gpt4 key购买 nike

我有一个在运行 ADF 管道后生成的报告,我需要在客户批准后将这些记录附加到历史表中。因此,我需要使用 PowerBi 或 Sharepoint 向客户展示此报告并获得批准。所以,我有这个计划,有人可以告诉我这是否可行,如果可行,如何实现?如果没有,请提出更改建议。

  1. 在 PowerBI 或 SharePoint 中显示报表,并具有批准/拒绝按钮。
  2. 如果客户端点击“批准”,它应该使用逻辑应用触发管道,并传递必要的参数。

如果可行的话,可以分享一下引用资料吗?如果没有,请告诉我如何以其他方式实现此功能。

最佳答案

满足您的要求的解决方法之一是使用逻辑应用并通过 Outlook 连接器的发送批准电子邮件操作使用电子邮件发送 PowerBI 或 SharePoint 链接,其中通过批准或拒绝用户发送电子邮件选项。

enter image description here

流程保持暂停状态,直到收到响应。

enter image description here

在我看来

enter image description here

收到响应后运行

enter image description here

现在,如果您收到已接受的响应,则要继续流程,您可以添加条件操作并检查响应是否已批准,然后继续流程。

enter image description here

结果:

enter image description here

下面是我的逻辑应用程序的代码 View

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Condition": {
"actions": {
"Compose": {
"inputs": "Your response have been Accepted.",
"runAfter": {},
"type": "Compose"
}
},
"expression": {
"and": [
{
"equals": [
"@body('Send_approval_email')?['SelectedOption']",
"Approve"
]
}
]
},
"runAfter": {
"Send_approval_email": [
"Succeeded"
]
},
"type": "If"
},
"Send_approval_email": {
"inputs": {
"body": {
"Message": {
"Body": "https://microsoftapc.sharepoint.com/teams/Sample2408/Lists/SampleList/AllItems.aspx",
"HideHTMLMessage": false,
"Importance": "Normal",
"Options": "Approve, Reject",
"ShowHTMLConfirmationDialog": false,
"Subject": "Approval Request",
"To": "<Email_ID>"
},
"NotificationUrl": "@{listCallbackUrl()}"
},
"host": {
"connection": {
"name": "@parameters('$connections')['office365']['connectionId']"
}
},
"path": "/approvalmail/$subscriptions"
},
"runAfter": {},
"type": "ApiConnectionWebhook"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"manual": {
"inputs": {
"schema": {}
},
"kind": "Http",
"type": "Request"
}
}
},
"parameters": {
"$connections": {
"value": {
"office365": {
"connectionId": "/subscriptions/<Sub_Id>/resourceGroups/<RG>/providers/Microsoft.Web/connections/office365",
"connectionName": "office365",
"id": "/subscriptions/<Sub_Id>/providers/Microsoft.Web/locations/centralus/managedApis/office365"
}
}
}
}
}

关于azure - 在 Azure 中获得批准后触发管道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73460210/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com