Skip to main content

 –

Creating a case by using an API

Suggest edit Updated on November 5, 2021

Increase the versatility of your Pega Platform application by creating a case from another application. You create a case by calling the create case microservice from an external application. As a result, you improve the efficiency of your business processes and save time by automating case creation.

For example, whenever a customer submits a ticket in a technical support application, the application automatically creates a bug in your project management system, such as JIRA.
The Generate create case microservice code option opens a dialog box that contains the information that you can use in a Pega API call, to call the create case microservice from your external application. By calling the microservice, you create a case in your application.
  1. In the navigation pane of Dev Studio, click Case types, 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. Use the information in the following fields to create a case of the selected case type from your external application:
    1. 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.
    2. 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.
    3. 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.
    For more information, see the documentation for your external application.
    For example: The following figure shows an example set of values to use in your external application:
    Sample code for creating a case by using an API
    The Generate create case microservice code window with a sample request URL, HTTP
                authentication header, and request body.
  5. Optional: To see a list of the built-in Pega API REST services in Pega Platform, click View all Pega API.
Did you find this content helpful? YesNo

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.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us