You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Logic App异步202响应自定义ID传递及轮询URL有效期咨询

Azure Logic Apps异步响应:202返回自定义ID及轮询URL有效期问题

问题场景

我有一个由HTTP Request触发的Azure Logic App,会为每个请求负载分配ID并存入Table Storage,已启用Asynchronous Response功能,支持客户端触发即忘操作。我需要在202响应中返回生成的ID,方便客户端存储后用于后续查询Table Storage数据、状态检查、任务重放或调试追踪。

但实际测试发现,添加到Response Body的ID及自定义Header不会随202响应返回,只会在工作流完成后的状态轮询响应中出现。以下是收到的202响应示例:

{"properties": {
    "waitEndTime": "2023-11-02T18:14:39.9143394Z",
    "startTime": "2023-11-02T18:14:39.9143394Z",
    "status": "Running",
    "correlation": {
        "clientTrackingId": "12341234123412341234123412341234"
    },
    "workflow": {
        "id": "/workflows/.../versions/08512341234123412341",
        "name": "08512341234123412341",
        "type": "Microsoft.Logic/workflows/versions"
    },
    "trigger": {
        "name": "manual",
        "inputsLink": {
            "uri": "https://prod-28.centralus.logic.azure.com:443/workflows/.../runs/12341234123412341234123412341234/contents/TriggerInputs?api-version=2016-10-01&se=2023-11-02T22%3A00%3A00.0000000Z&sp=%2Fruns%12341234123412341234123412341234%2Fcontents%2FTriggerInputs%2Fread&sv=1.0&sig=...",
            "contentVersion": "ypjhVecnsHtFi5cxo/hiWA==",
            "contentSize": 256,
            "contentHash": {
                "algorithm": "md5",
                "value": "ypjhVecnsHtFi5cxo/hiWA=="
            }
        },
        "outputsLink": {
            "uri": "https://prod-28.centralus.logic.azure.com:443/workflows/.../runs/12341234123412341234123412341234/contents/TriggerOutputs?api-version=2016-10-01&se=2023-11-02T22%3A00%3A00.0000000Z&sp=%2Fruns%12341234123412341234123412341234%2Fcontents%2FTriggerOutputs%2Fread&sv=1.0&sig=...",
            "contentVersion": "QGt+/SWzwhQz+hPxukjkw7==",
            "contentSize": 2052,
            "contentHash": {
                "algorithm": "md5",
                "value": "QGt+/SWzwhQz+hPxukjkw7=="
            }
        },
        "startTime": "2023-11-02T18:14:39.8969631Z",
        "endTime": "2023-11-02T18:14:39.8969631Z",
        "originHistoryName": "12341234123412341234123412341234",
        "correlation": {
            "clientTrackingId": "12341234123412341234123412341234"
        },
        "status": "Succeeded"
    },
    "outputs": {
    },
    "response": {
        "startTime": "2023-11-02T18:14:39.9126185Z",
        "correlation": {
        },
        "status": "Waiting"
    }
},
"id": "/workflows/.../runs/12341234123412341234123412341234",
"name": "12341234123412341234123412341234",
"type": "Microsoft.Logic/workflows/runs"
}

工作流配置截图:
工作流截图

异步响应设置截图:
异步响应设置截图

额外疑问

  • 轮询URL的有效期是多久?比如一年后还能通过该URL获取结果吗?

内容的提问来源于stack exchange,提问作者xr280xr

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 05:20:55