Professional Documents
Culture Documents
CRUD Operations Using Constellation DX API's
CRUD Operations Using Constellation DX API's
To work with Constellation DX APIs, you must use the Pega Community Edition exclusively.
In App Studio, create a new data type, making sure that the pyGUID is both autogenerated and set to
read-only.
Deselect the client credentials checkbox and select the password credentials checkbox.
Click on save.
Done.
For accessing Constellation DX API’s, we have service package called Application.
1. CREATE operation:
Enter all required information, including Token Name, Grant Type, Access Token URL, Client ID, Client
Secret, Username, and Password from the file which you downloaded.
Note: You need to manually create a new operator ID in Pega Community Edition and
use the same Username and Password in Postman.
Click on Get New Access Token. Once authentication is successful, click on Use Token.
In Postman, enter the details in JSON format for the property or properties you need to add in the
Datatype.
You will get 200 as response code that means record is successfully inserted into the data type.
Let’s check the same in our Pega Datatype.
Refresh it.
2. UPDATE operation:
Click on send.
Let’s check.
Refresh.
For DELETE operation we don’t have body. So, we need to pass the pyGUID as a parameter.
You will be getting an error, and response code as 400 that means bad request. So here we need to
pass the pyGUID in an encoded format.
For encoding, visit https://www.urlencoder.org/ and paste pyGUID in that website.
We got 200 as response code which means data record in deleted in the Datatype.
Refresh.
THANK YOU