I am trying to extend my K2 implementation to assign tasks to a person when creating or updating a task in Planner using Microsoft Graph and the REST broker.
After several hours it feels like I am not getting anywhere.
It looks like K2 REST can't have a nested object in the definition.
I need to send a JSON payload like this for create:
{
"planId": "xg6smYH69E-B9P5uD2weqMgACzzz",
"bucketId": "OZQvBBqIJ0Gh8mN7FeUyHsgACzzz",
"title": "Testing assignment",
"startDateTime": "20*personal details removed*",
"dueDateTime": "20*personal details removed*",
"assignments":{
"730ccc49-f9*personal details removed*c*personal details removed*b4a-ed708f6d9zzz":
"{"@odata.type":"#microsoft.graph.plannerAssignment","orderHint":"N9917 U2883!"}"
}
}
{
"error": {
"code": "BadRequest",
"message": "Property assignments in payload has a value that does not match schema.",
"innerError": {
"date": "20*personal details removed*T00:21:04",
"request-id": "8b5fce3f-399a-48*personal details removed*fdd-abf0ba1d5233"
}
}
}
I am using Fiddler on the K2 server to try to get it to work, but without any success.
Has anyone been able to do this and would like to share how please?
Thanks
Jem