Creating custom screens with the DX API
Incorporate elements and results of Pega Platform processing into external web pages and applications by using Pega digital experience (DX) REST API. When you use the Pega DX API, your application users can access Pega business functionality in a familiar interface.
For example, you can configure your non-Pega application to display a list of case types or open assignments for workers.
Pega Platform refers to a set of specific REST API endpoints as DX API endpoints because they use Pega Platform user interface elements, such as harnesses and sections, together with Pega business processing to return JSON-equivalent structures that you can render with your native interface. By using DX API you can enrich your application with Pega elements in a flexible way that matches your unique business needs. You can incorporate the following elements:
- Case types
- Cases
- Collaboration tools, such as documents, spaces, messages, and notifications
- Attachments
- Data pages
The following sample scenarios describe how you can enrich your custom UI by using Pega DX API:
Managing cases with DX API
Provide users of your external application with tools to manage case types and cases that you store in Pega Platform by applying DX API. DX API endpoints help you take advantage of tools and processing that Pega Platform offers in an environment that is familiar to your customers.
- In the navigation pane of App Studio, click Channels.
- In the Current channel interfaces section, click API.
- In the Service package list, select V1 Pega API.
- Expand the Application section.
- Select the DX API endpoints that you want to use in your external
application:
Choices Actions Integrate case types - From the casetypes section, select the endpoint that you want to use.
Integrate cases - From the cases section, select the endpoint that you want to use.
Completing assignments with DX API
Incorporate tools to manage assignments into non-Pega applications by using DX API. When you integrate the results of Pega Platform processing with external applications, you reach wider audiences and ensure that users can reach their business objectives in a familiar interface.
- A list of assignments for a current user
- Breadcrumb navigation
- The assignment instructions
- The button to submit the assignment
- The gadget that displays additional tools, such as the Pulse feed
- In the navigation pane of App Studio, click Channels.
- In the Current channel interfaces section, click API.
- In the Service package list, select V1 Pega API.
- Expand the Application section.
- Select the DX API endpoints that you want to use to build the screen:
- To include a list of the current assignments for the current user, use
GET /assignments
. - To display breadcrumb navigation through assignment stages by selecting
GET /cases/{caseID}
. - To get the instructions and list of actions for a specific assignment,
use
GET /assignments/{assignmentID}
. - To display the view for the chosen action, use
GET /assignments/{assignmentID}/actions/{actionID}
. - To refresh the form when a user populates the fields, use
PUT /assignments/{assignmentID}/actions/{actionID}/refresh
.You refresh the form to validate When conditions and repeating lists.
- To include a button that a user clicks to submit the form, use
POST /assignments/{assignmentID}?actionID=[actionID]
.
- To include a list of the current assignments for the current user, use
Creating a custom dashboard with DX API
Create an application that meets your unique business requirements and incorporate the exact UI elements that are relevant to your business process by using DX API.
For example, you can create a custom dashboard that is a part of an external website but displays elements that you process in Pega Platform, such as case types, cases, and assignments. By using DX API, you merge tools and possibilities that Pega Platform provides with an interface that is familiar to the users of your application.- In the navigation pane of App Studio, click Channels.
- In the Current channel interfaces section, click API.
- In the Service package list, select V1 Pega API.
- Expand the Application section.
- Select a DX API endpoint that you want to use in your custom dashboard:
- To embed a button to get the next assignment, use
GET /assignments/next
. - To build a list of case types that a user can create, use
GET /casetypes
. - To embed a text field that users can use to search for cases by ID, use
GET /cases/{ID}/pages/Review
. - To get a list of recently accessed cases, use
GET /data/Declare_pxRecents
. - To get information about the current user, use
GET /data/D_OperatorID
. - To build a worklist for the current user, use
GET /data/D_Worklist
.
- To embed a button to get the next assignment, use
Previous topic Form fields retrieval Next topic DX API request and response elements