web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to parse JSON f...
Power Automate
Unanswered

Unable to parse JSON from Graph API call to get Teams Group owners

(0) ShareShare
ReportReport
Posted on by 22

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:

============

[
  {
    "message""Invalid type. Expected String but got Null.",
    "lineNumber"0,
    "linePosition"0,
    "path""value[1].mobilePhone",
    "schemaId""#/properties/value/items/properties/mobilePhone",
    "errorType""type",
    "childErrors": []
  },
  {
    "message""Invalid type. Expected String but got Null.",
    "lineNumber"0,
    "linePosition"0,
    "path""value[1].preferredLanguage",
    "schemaId""#/properties/value/items/properties/preferredLanguage",
    "errorType""type",
    "childErrors": []
  }
]
=====
Schema
=====
{
  "type""object",
  "properties": {
    "value": {
      "type""array",
      "items": {
        "type""object",
        "properties": {
          "id": {
            "type""string"
          },
          "businessPhones": {
            "type""array",
            "items": {
              "type""string"
            }
          },
          "displayName": {
            "type""string"
          },
          "givenName": {
            "type""string"
          },
          "jobTitle": {},
          "mail": {
            "type""string"
          },
          "mobilePhone": {
            "type""string"
          },
          "officeLocation": {},
          "preferredLanguage": {
            "type""string"
          },
          "surname": {
            "type""string"
          },
          "userPrincipalName": {
            "type""string"
          },
          "@odata.type": {
            "type""string"
          }
        },
        "required": [
          "@odata.type",
          "id",
          "businessPhones",
          "displayName",
          "givenName",
          "jobTitle",
          "mail",
          "mobilePhone",
          "officeLocation",
          "preferredLanguage",
          "surname",
          "userPrincipalName"
        ]
      }
    },
    "@odata.context": {
      "type""string"
    }
  }
}
Categories:
I have the same question (0)
  • Verified answer
    imcoDev Profile Picture
    22 on at

    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"
    ]
    }
    }
    }
    }

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard