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:
"title": "Testing assignment",
"startDateTime": "20*personal details removed*",
"dueDateTime": "20*personal details removed*",
"730ccc49-f9*personal details removed*c*personal details removed*b4a-ed708f6d9zzz":
"message": "Property assignments in payload has a value that does not match schema.",
"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?
It looks like if I try to pass it as a string, K2 escapes it and makes it invalid.
So K2 is sending this payload:
So unless I can somehow include it as an object, I wonder how I can stop K2 escaping the string.
If I call the Tasks -> CreateTask method with no serialization, it still converts this:
Can you strip out the carriage returns before you serialize?
Thanks for the Reply Nigel.
Yes, unfortunately if the request is escaped at all it fails. I've tested it out in Postman.
Somehow I need K2 to not try to serialize it.
Getting rid of the CR/LF, this is effectively what is sent and returned
This is what gets returned