I’ve a outgoing configuration to a API, that’s gives a 200 OK response
the body instead does have the status (Processed or Error) as a array.
I tried to set-up a validator, but without any documentation, is really complex.
So, for example I got the next Body:
{
"Header": {
"Version": "1.0",
"Identification": "1234567890",
"Sender": "some-secret-key"
},
"Result": [
{
"CompanyIdentifier": "13",
"OrderIdentifier": "1234567890",
"ProcessingStatus": "E",
"SalesOrderImportResult": "Can't import Sales Order. SO already in progress."
}
],
"Footer": {
"TotalRecords": 0,
"Records": 0
}
}
I’ve added a plug-in ‘Validate the response’
- Validate message body
- Evaluate filter
- Value Condition
- Pattern accessor
- Pattern: Result.*.ProcessingStatus
- Does not equal: string “P”
Right now this is one of the 5 solutions i tried already, but whatever i try, it fails always like:
Failed: Require all validations to pass
- Failed: Require all items to validate
- Failed: Require all validations to pass
- Failed: Error processing order
- Failed: Require all validations to pass
so, is there any howto/manual or example ? or maybe someone can explain howto achieve this