I am trying to trigger a workflow when the department changes using the Identity Attributes Changed trigger, but when I test a positive condition, I end up with the message of an invalid map:
[
{
"type": "WorkflowExecutionStarted",
"timestamp": "2022-01-27T22:46:05.739760992Z",
"attributes": {
"input": {
"changes": [
{
"attribute": "department",
"newValue": "marketing",
"oldValue": "sales"
}
],
"identity": {
"id": "2c9180876ae6b8f3016b668e01a63530",
"name": "Justin.Haines",
"type": "IDENTITY"
}
}
}
},
{
"type": "WorkflowTaskScheduled",
"timestamp": "2022-01-27T22:46:05.739808283Z",
"attributes": {}
},
{
"type": "WorkflowTaskStarted",
"timestamp": "2022-01-27T22:46:05.82204121Z",
"attributes": {}
},
{
"type": "WorkflowTaskCompleted",
"timestamp": "2022-01-27T22:46:05.868088546Z",
"attributes": {}
},
{
"type": "ActivityTaskScheduled",
"timestamp": "2022-01-27T22:46:05.868148035Z",
"attributes": {
"activity": "sp:internal:http",
"input": {
"body": {
"requestedFor": {
"id": "2c9180876ae6b8f3016b668e01a63530"
},
"requestedItems": {
"id": "2c9180867e9a1b12017e9dabaa520a02",
"type": "ROLE"
}
},
"identities": {
"id": "2c9180876ae6b8f3016b668e01a63530"
},
"method": "POST",
"path": "rats/access-requests",
"requestedItems": {
"id": "2c9180867e9a1b12017e9dabaa520a02",
"type": "ROLE"
},
"service": "rats"
},
"task": "sp:create-approval-request"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2022-01-27T22:46:05.91341977Z",
"attributes": {}
},
{
"type": "ActivityTaskFailed",
"timestamp": "2022-01-27T22:46:06.231819397Z",
"attributes": {}
},
{
"type": "WorkflowTaskScheduled",
"timestamp": "2022-01-27T22:46:06.231839257Z",
"attributes": {}
},
{
"type": "WorkflowTaskStarted",
"timestamp": "2022-01-27T22:46:06.290068288Z",
"attributes": {}
},
{
"type": "WorkflowTaskCompleted",
"timestamp": "2022-01-27T22:46:06.32724621Z",
"attributes": {}
},
{
"type": "WorkflowExecutionFailed",
"timestamp": "2022-01-27T22:46:06.327278406Z",
"attributes": {
"error": "output was not a valid map"
}
}
]
I am including my workflow to see if anyone can assist with this simple use case. Thanks!
DepartmentChange20220127.txt (1.5 KB)