Service Rest- Sending Case ID as response

Hello everyone,

I have a scenario like, We have a service and we get the request from the external system, we need to create case in pega and send back the case id as a response. How can we achieve this?

Regards,

Mamatha Adiraju

@Mamatha Adiraju

o achieve this, you can use Pega API’s to create a case. You can use the ‘create Case’ microservice from an external application. Here are the steps:

  1. In the navigation pane of Pega, click Cases, and then click the Case Type that you want to open.
  2. On the Settings tab, click Integration.
  3. In the Microservice APIs section, click Generate create Case microservice code.
  4. Create a Case of the selected Case Type from your external application by using the information in the following fields:
    • In the Request URL (HTTP POST method) field, copy the URL that you can access to create the Case, and then paste the URL in the external application. Ensure that you invoke the URL by using the HTTP POST method.
    • In the HTTP authentication header field, copy the header for the microservice call, and then, in the external application, enter the login credentials in the header for basic HTTP authentication.
    • In the Request body field, copy the body for the microservice call, and then, in the external application, paste the body and replace the values for fields in the content node with values that are appropriate for the Case that you want to create.

After the case is created, you can send back the case ID (pyID) as a response to the external system.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

Rest Service Integration

Creating a Case by using an API

How can we pass parameter dynamically to connect rest from outside application which triggers workflow into pega?

External system access with rest service while user submit request.

Pega 8.5 REST API error (Broken process)