Forum Discussion
jbw09
Sep 03, 2022Copper Contributor
400 "UnknownError" creating plannerPlan via Power Automate
Looking for insight into why this error is occurring or pointers to where I can find a resolution as I've followed the specifications and tried a variety of ways given anomalies noticed in the documentation (Ex: "@odata.type": "microsoft.graph.plannerPlanContainer" at https://docs.microsoft.com/en-us/graph/api/resources/plannerplan?view=graph-rest-1.0 but "@odata.type": "#microsoft.graph.plannerPlanContainer" at https://docs.microsoft.com/en-us/graph/api/resources/plannerplancontainer?view=graph-rest-1.0).
I also visited the link in the response headers as well as a shortened version of it (https://developer.microsoft-tst.com/en-us/graph/changes) - both dead. Guessing the deprecated reference would be to plannerPlan's owner property (https://docs.microsoft.com/en-us/graph/api/resources/plannerplan?view=graph-rest-1.0)?
Request (using Power Automate's Send an HTTP Request\Office 365 Groups) -
URI
https://graph.microsoft.com/v1.0/planner/plans
Method
POST
Body
{
"owner": "{myGroupId}",
"title": "Plannamehere",
"container": {
"@odata.type": "microsoft.graph.plannerPlanContainer",
"containerId": "{myGroupId}",
"type": "group",
"url": "https://graph.microsoft.com/v1.0/groups/{myGroupId}"
}
}
Response -
Headers
{
"Transfer-Encoding": "chunked",
"Vary": "Accept-Encoding",
"Strict-Transport-Security": "max-age=31536000",
"request-id": "abac5411-ecd8-4ca6-8a80-892cbec4592d",
"client-request-id": "abac5411-ecd8-4ca6-8a80-892cbec4592d",
"x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"West US\",\"Slice\":\"E\",\"Ring\":\"4\",\"ScaleUnit\":\"002\",\"RoleInstance\":\"BY3PEPF00015DD7\"}}",
"Link": "<https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=v1.0,Tasks_And_Plans&from=2022-04-01&to=2022-05-01>;rel=\"deprecation\";type=\"text/html\"",
"Deprecation": "Mon, 25 Apr 2022 23:59:59 GMT",
"Sunset": "Thu, 25 Apr 2024 23:59:59 GMT",
"X-ProxyCluster": "eus-001.tasks.osi.office.net",
"X-OfficeCluster": "eus-001.tasks.osi.office.net",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"x-ms-apihub-obo": "true",
"Cache-Control": "no-cache",
"Date": "Sat, 03 Sep 2022 00:42:52 GMT",
"Content-Type": "application/json",
"Content-Length": "266"
}
Body
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2022-09-03T00:42:52",
"request-id": "abac5411-ecd8-4ca6-8a80-892cbec4592d",
"client-request-id": "abac5411-ecd8-4ca6-8a80-892cbec4592d"
}
}
}
No RepliesBe the first to reply