Support Article
Mule Pega Connector issue
Summary
User facing issue while creating work object through Pega RAML API.
Error Messages
"pxObjClass": "Pega-API-CaseManagement-Case",
"errors": [
{
"ID": "Pega_API_004",
"message": "The parameter caseTypeID is required for this request",
"pxObjClass": "Pega-API-Error"
}
Steps to Reproduce
Note: Use Postman to reproduce this issue.
1. Select operation as POST.
2. Use followiing URL:
https://URL:443/prweb/api/v1/cases
3. Go to authorization tab:
select type as Basic Auth
username: XXXXXX
password: XXXX
4. Go to Body:
select option as raw and JSON(application/JSON) from drop-down
5. Paste following payload in text area:
{
"id": "CreateCaseRequest",
"title": "CreateCaseRequest",
"type": "object",
"properties": {
"caseTypeID": {
"type": "xxxxxxx-xxxx"
},
"processID": {
"type": "pyStartCase"
},
"parentCaseID": {
"type": ""
},
"content": {
"type": "object"
}
}
}
6. Click Send. Status will be returned 400 bad request with following payload:
{
"pxObjClass": "Pega-API-CaseManagement-Case",
"errors": [
{
"ID": "Pega_API_004",
"message": "The parameter caseTypeID is required for this request",
"pxObjClass": "Pega-API-Error"
}
]
}
Root Cause
User sending invalid request, hence failing WorkObject creation.
Resolution
User must send request as below it will create WorkObject using Pega RAML API.
While creating case caseTypeID is the required parameter and find the sample request and response after creating a case with Pega RAML.
Request:
{
"caseTypeID":"XXXXX-XXXX",
"processID":"pyStartCase",
"content":{}
}
201 Created 1360.00 ms
"ID": "XXXX-WORK A-201",
"pxObjClass": "Pega-API-CaseManagement-Case"
}
Published July 5, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.