
Announcements
Hello,
since there is no action to get Team owners, I followed this workaround article(Getting Group owners using MS Graph API in Power Automate) to get it via Graph API call. However, I am unable to parse the JSON result. Please help and happy holidays 🙂
Result:
============
I ended up figuring this out. Based on the null errors in message I set the type to: "type": ["string", "null"]
Afterwards, the Parse JSON worked.
{
"type": "object",
"properties": {
"@@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"@@odata.type": {
"type": "string"
},
"id": {
"type": "string"
},
"businessPhones": {
"type": "array"
},
"displayName": {
"type": "string"
},
"givenName": {
"type": "string"
},
"jobTitle": {
"type": ["string", "null"]
},
"mail": {
"type": "string"
},
"mobilePhone": {
"type": ["string", "null"]
},
"officeLocation": {
"type": "string"
},
"preferredLanguage": {
"type": ["string", "null"]
},
"surname": {
"type": "string"
},
"userPrincipalName": {
"type": "string"
}
},
"required": [
"@@odata.type",
"id",
"businessPhones",
"displayName",
"givenName",
"jobTitle",
"mail",
"mobilePhone",
"officeLocation",
"preferredLanguage",
"surname",
"userPrincipalName"
]
}
}
}
}