Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Mule Pega Connector issue

SA-38198

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":{}

}
Response:

201 Created 1360.00 ms
{
"ID": "XXXX-WORK A-201",
"pxObjClass": "Pega-API-CaseManagement-Case"
}

Published July 5, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us