Hello All,
I have built a workflow to copy a Planner.
The flow creates a new Planner and then the tasks from the old Planner according to the buckets.
Unfortunately, the workflow runs into an error every time it creates the tasks.
As error message I only get back "Bad Request". In the output of the "Create Planner" action it says:
{"error":{"code":"", "message": "An open type property has an invalid type."
Hopefully there is someone with a similar problem or an idea for a solution. I am open for all ideas.
From here my flow structure begins
My actions looks like this:
I get the startDateTime and dueDateTime from the old task using the graph api.
Graph-API:
My Json:
{
"type": "object",
"properties": {
"@@odata.context": {
"type": "string"
},
"@@odata.etag": {
"type": "string"
},
"planId": {
"type": "string"
},
"bucketId": {
"type": [
"string",
"null"
]
},
"title": {
"type": "string"
},
"orderHint": {
"type": [
"string",
"null"
]
},
"assigneePriority": {
"type": [
"string",
"null"
]
},
"percentComplete": {
"type": [
"integer",
"null"
]
},
"startDateTime": {
"type": [
"string",
"null"
]
},
"createdDateTime": {
"type": [
"string",
"null"
]
},
"dueDateTime": {
"type": [
"string",
"null"
]
},
"hasDescription": {
"type": [
"boolean",
"null"
]
},
"previewType": {
"type": [
"string",
"null"
]
},
"completedDateTime": {
"type": [
"string",
"null"
]
},
"referenceCount": {
"type": [
"integer",
"null"
]
},
"checklistItemCount": {
"type": [
"integer",
"null"
]
},
"activeChecklistItemCount": {
"type": [
"integer",
"null"
]
},
"conversationThreadId": {
"type": [
"string",
"null"
]
},
"priority": {
"type": [
"integer",
"null"
]
},
"id": {
"type": "string"
},
"createdBy": {
"type": "object",
"properties": {
"user": {
"type": "object",
"properties": {
"displayName": {},
"id": {
"type": [
"string",
"null"
]
}
}
},
"application": {
"type": "object",
"properties": {
"displayName": {},
"id": {
"type": [
"string",
"null"
]
}
}
}
}
},
"completedBy": {
"type": [
"object",
"null"
],
"properties": {
"user": {
"type": "object",
"properties": {
"displayName": {},
"id": {
"type": [
"string",
"null"
]
}
}
},
"application": {
"type": "object",
"properties": {
"displayName": {},
"id": {
"type": [
"string",
"null"
]
}
}
}
}
},
"appliedCategories": {
"type": [
"object",
"null"
],
"properties": {
"category1": {
"type": "boolean"
},
"category2": {
"type": "boolean"
}
}
},
"assignments": {
"type": [
"object",
"null"
],
"properties": {
"3c02f5a7-d099-4635-****-79016e18b7dc": {
"type": "object",
"properties": {
"@@odata.type": {
"type": [
"string",
"null"
]
},
"assignedDateTime": {
"type": [
"string",
"null"
]
},
"orderHint": {
"type": [
"string",
"null"
]
},
"assignedBy": {
"type": "object",
"properties": {
"user": {
"type": "object",
"properties": {
"displayName": {},
"id": {
"type": [
"string",
"null"
]
}
}
},
"application": {
"type": "object",
"properties": {
"displayName": {},
"id": {
"type": [
"string",
"null"
]
}
}
}
}
}
}
},
"4576fa19-58de-4629-****-a75591e5db79": {
"type": "object",
"properties": {
"@@odata.type": {
"type": [
"string",
"null"
]
},
"assignedDateTime": {
"type": [
"string",
"null"
]
},
"orderHint": {
"type": [
"string",
"null"
]
},
"assignedBy": {
"type": "object",
"properties": {
"user": {
"type": "object",
"properties": {
"displayName": {},
"id": {
"type": [
"string",
"null"
]
}
}
},
"application": {
"type": "object",
"properties": {
"displayName": {},
"id": {
"type": [
"string",
"null"
]
}
}
}
}
}
}
}
}
}
}
}
startDateTime:
In the action: if(empty(variables('TXT_TaskStartDateTime')),null,variables('TXT_TaskStartDateTime'))
The Variable set up:
dueDateTime:
In the action: if(empty(variables('TXT_TaskDueDateTime')),null,variables('TXT_TaskDueDateTime'))
The Variable set up:

Report
All responses (
Answers (