Expression 把它放在聊天室里,难道没有什么方法可以在不首先解析为xml的情况下获取json吗?看起来不是这样,但我可以想象有一天这个功能会出现。但是,我已经想出了一种肮脏的HTML方式,我将用它来编辑,作为替代方法。好的,现在就用它来编辑。实际上,通过解析HTML表头

Expression 把它放在聊天室里,难道没有什么方法可以在不首先解析为xml的情况下获取json吗?看起来不是这样,但我可以想象有一天这个功能会出现。但是,我已经想出了一种肮脏的HTML方式,我将用它来编辑,作为替代方法。好的,现在就用它来编辑。实际上,通过解析HTML表头,expression,power-automate,Expression,Power Automate,把它放在聊天室里,难道没有什么方法可以在不首先解析为xml的情况下获取json吗?看起来不是这样,但我可以想象有一天这个功能会出现。但是,我已经想出了一种肮脏的HTML方式,我将用它来编辑,作为替代方法。好的,现在就用它来编辑。实际上,通过解析HTML表头非常简单:split(replace(首先(split(body('Create_HTML_table'),''),''),'',''),''),''),这是三个步骤。好的。现在还有完整的XML数组。说实话,即使有令人望而生畏的if/then


把它放在聊天室里,难道没有什么方法可以在不首先解析为xml的情况下获取json吗?看起来不是这样,但我可以想象有一天这个功能会出现。但是,我已经想出了一种肮脏的HTML方式,我将用它来编辑,作为替代方法。好的,现在就用它来编辑。实际上,通过解析HTML表头非常简单:
split(replace(首先(split(body('Create_HTML_table'),''),''),'',''),''),'')
,这是三个步骤。好的。现在还有完整的XML数组。说实话,即使有令人望而生畏的if/then nest,这绝对是一条路要走,因为它不依赖于任何特定的东西来计算值。
let TestTable = datatable(ColumnName1:int, ComumnName2:string) 
[
   1, "some string value"
];
TestTable
[
  {
    "ColumnName1": 1,
    "ColumnName2": "some string value"
  }
]
string(fieldName(variables('index')))
|---------------------------------|
| ColumnName1 |    ColumnName2    |
|---------------------------------|
| 1           | some string value |
|---------------------------------|
xpath(xpath(xml(json(concat('{ "root": ', string(variables('arrayVAR')[0]), ' }'))), '/root/*')[0], 'name(/*)')
xpath(xml(json(concat('{ "root": { "columns": ', string(variables('arrayVAR')), ' } }'))), '/root/columns/*')
split(replace(replace(first(split(body('Create_HTML_table'), variables('headCloseVAR'))), variables('headOpenVAR'), ''), variables('headEndVAR'), ''), variables('headSplitVAR'))
split(replace(replace(first(split(body('Create_HTML_table'), '</tr></thead>')), '<table><thead><tr><th>', ''), '</th>', ''), '<th>')