【发布时间】:2020-04-06 23:49:51
【问题描述】:
我已经设法将我的所有用户数据放在一个数组中(请参阅here),但现在我无法遍历数据。构建数组后,我已将其转换为 JSON,但我无法再处理我的 JSON 架构中定义的字段。
我在循环中唯一可以解决的问题(我使用 JSON 正文作为 For Each 循环的输入)是正文本身,而不是单独的字段,如用户名、邮件地址等。
我应该更改我的 JSON 架构中的某些内容来克服这个问题还是有其他问题?
编辑:请在下面找到我的 JSON 架构:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"items": [
{
"properties": {
"@@odata.type": {
"type": "string"
},
"createdDateTime": {
"type": "string"
},
"employeeId": {
"type": "string"
},
"givenName": {
"type": "string"
},
"id": {
"type": "string"
},
"mail": {
"type": "string"
},
"onPremisesSamAccountName": {
"type": "string"
},
"surname": {
"type": "string"
},
"userPrincipalName": {
"type": "string"
}
},
"required": [
"@@odata.type",
"id",
"givenName",
"surname",
"userPrincipalName",
"mail",
"onPremisesSamAccountName",
"employeeId",
"createdDateTime"
],
"type": "object"
}
],
"type": "array"
}
请查看图片了解 JSON 的外观:
【问题讨论】:
标签: arrays json azure-logic-apps power-automate