Create case api is failing because of missing workparty
Creating a case via api causes validation errors on pyWorkParty(Customer) -> email, lastname and such.
However, no workparty is required during case creating.
{
"pxObjClass": "Pega-API-CaseManagement-Case",
"createCaseRequest": {
"caseTypeID": "ACorp-Authoring-Work-AuthorDocument",
"pxObjClass": "Pega-API-CaseManagement",
"content": {
"pxActiveChannelFromAPI": "Web",
"pxCreatedFromChannel": "Web",
"pxObjClass": "ACorp-Authoring-Work-AuthorDocument"
}
},
"errors": [
{
"ID": "Pega_API_055",
"message": "Validation messages found.",
"pxObjClass": "Pega-API-Error",
"ValidationMessages": [
{
"Path": ".pyWorkParty(Customer).pyLastName",
Creating a case via api causes validation errors on pyWorkParty(Customer) -> email, lastname and such.
However, no workparty is required during case creating.
{
"pxObjClass": "Pega-API-CaseManagement-Case",
"createCaseRequest": {
"caseTypeID": "ACorp-Authoring-Work-AuthorDocument",
"pxObjClass": "Pega-API-CaseManagement",
"content": {
"pxActiveChannelFromAPI": "Web",
"pxCreatedFromChannel": "Web",
"pxObjClass": "ACorp-Authoring-Work-AuthorDocument"
}
},
"errors": [
{
"ID": "Pega_API_055",
"message": "Validation messages found.",
"pxObjClass": "Pega-API-Error",
"ValidationMessages": [
{
"Path": ".pyWorkParty(Customer).pyLastName",
"pxObjClass": "Pega-API-Error-ValidationMessage",
"ValidationMessage": "This field may not be blank."
},
{
"Path": ".pyWorkParty(Customer).pyEmail1",
"pxObjClass": "Pega-API-Error-ValidationMessage",
"ValidationMessage": "This field may not be blank."
},
{
"Path": ".pyWorkParty(Customer).pyFirstName",
"pxObjClass": "Pega-API-Error-ValidationMessage",
"ValidationMessage": "This field may not be blank."
}
]
}
]
}