"message": "Invalid type. Expected Array but got Object.",
"lineNumber": 0,
"linePosition": 0,
"path": "",
"schemaId": "#",
"errorType": "type",
"childErrors": []
}
]
Content:
{
"@odata.type": "#microsoft.graph.user",
"id": "Example ID",
"businessPhones": [],
"displayName": "Example Name",
"givenName": "Example given name",
"mail": "Example mail",
"officeLocation": "Example officeLocation",
"surname": "Example surname",
"userPrincipalName": "Example userPrincipalName"
}
Schema:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"businessPhones": {
"type": "array"
},
"displayName": {
"type": "string"
},
"givenName": {
"type": "string"
},
"mail": {
"type": "string"
},
"officeLocation": {
"type": "string"
},
"surname": {
"type": "string"
},
"userPrincipalName": {
"type": "string"
},
"@odata.type": {
"type": "string"
}
},
"required": [
"@odata.type",
"id",
"businessPhones",
"displayName",
"givenName",
"mail",
"officeLocation",
"surname",
"userPrincipalName"
]
}
}
I tried to change type from Array to Object:
but new error appears: The variable 'Members' of type 'Object' cannot be initialized or updated with value of type 'Array'. The variable 'Members' only supports values of types 'Object'.
I guess you're making a query against Azure AD groups... Why do you need the parse JSON action? Could you provide context on that so we can help you?
Thanks in advance!
Ferran
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.