{
"type": "OpenApiConnection",
"description": "Add a row to Excel with all Teams card response values mapped: workhour, pdrhours, vacationdays, overtimehours.",
"inputs": {
"parameters": {
"source": "me",
"drive": "b!8kNl7idrkkKVLmTJ4PrFC2r0HYj2zAJNmeXlRfroAPm9FWvdnVFVRJB8XmB5DcH9",
"file": "01JAG4K2Y2F6HKKDETFVFYM5LNRH37VWFW",
"table": "{2613D076-6C7E-4297-A6E7-6CB2FE50F909}",
"item/提交时间": "@outputs('Postcard')?['body/responseTime']",
"item/提交人": "@outputs('Postcard')?['body/responder/email']",
"item/当月预计工作小时数": "@outputs('Postcard')?['body/data/workhour']",
"item/本月PDR小时数": "@outputs('Postcard')?['body/data/pdrhours']",
"item/本月预计休假数": "@outputs('Postcard')?['body/data/vacationdays']",
"item/本月预计加班时长": "@outputs('Postcard')?['body/data/overtimehours']"
},
"host": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_excelonlinebusiness",
"connection": "shared_excelonlinebusiness",
"operationId": "AddRowV2"
}
},
"runAfter": {
"Compose": [
"Succeeded"
]
},
"trackedProperties": {
"提交时间": ""
},
"metadata": {
"01JAG4K2Y2F6HKKDETFVFYM5LNRH37VWFW": "/JY/AI/power automate/员工数据收集.xlsx",
"tableId": "{2613D076-6C7E-4297-A6E7-6CB2FE50F909}"
}
}
{
"type": "AdaptiveCard",
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"body": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"text": "📋 本月数据收集",
"wrap": true
},
{
"type": "TextBlock",
"text": "请填写以下四项数据,填写后点击【提交】。",
"wrap": true,
"spacing": "Medium"
},
{
"type": "Input.Number",
"id": "workhour",
"label": "1. 当月预计工作小时数",
"isRequired": true,
"errorMessage": "此项为必填,请输入数字",
"spacing": "Medium"
},
{
"type": "Input.Number",
"id": "pdrhours",
"label": "2. 本月 PDR 小时数",
"isRequired": true,
"errorMessage": "此项为必填,请输入数字",
"spacing": "Medium"
},
{
"type": "Input.Number",
"id": "vacationdays",
"label": "3. 本月预计休假数",
"isRequired": true,
"errorMessage": "此项为必填,请输入数字",
"spacing": "Medium"
},
{
"type": "Input.Number",
"id": "overtimehours",
"label": "4. 本月预计加班时长",
"isRequired": true,
"errorMessage": "此项为必填,请输入数字",
"spacing": "Medium"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "✅提交",
"style": "positive",
"associatedInputs": "none"
}
]
}