从存储过程返回的 table 中获取第一列第一行的值

Get value of first column, first row from table returned from stored procedure

在逻辑应用程序中,要从作为存储过程调用结果的 table 中获取值,需要循环,因为 table 实际上是一个数组。

有没有办法只引用返回数据中的第一个单元格,而不循环遍历它?

我需要的值将始终位于 table 中的第一个单元格中,因此我宁愿在逻辑应用程序中没有其他操作来循环遍历 table。

以下是“执行存储过程 V2”操作返回的内容:

{
"properties": {
    "ResultSets": {
        "properties": {
            "Table1": {
                "items": {
                    "properties": {
                        "Column1": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "Column1"
                    ],
                    "type": "object"
                },
                "type": "array"
            }
        },
        "type": "object"
    }
},
"type": "object"

}

请参考这个表达式:

body('Execute_stored_procedure_(V2)')?['resultsets']?['Table1'][0]?['Column1']

这种方式可以获得数组中的第一项。