How to Add\Update\Retrieve\Delete a record from the Data Type using Service REST? -Part 4

DELETE


 In our previous posts, we have seen how to retrieve,insert and update a record in Data type using Service REST.  Here in our last post under this topic, we would be seeing how we can delete the record using Delete method of  Service REST.
Let’s get started. 😊
  • Below is the Class hierarchy which I have used.
    My main class is : OCTBK2-Int-Services
    ->DeleteCustomerRequest- Page
    ->DeleteCustomerResponse- Page

Request Property Mapping

  • Below is the Service Activity to delete the record into Data Type

Response Property Mapping


Now, we are done with defining request,response and activity. Let's execute and see the results. 😊

Request
Response JSON

  • Also , in Data type , we cannot see the record.
Do you know we can verify the same using Service REST also?

Yes. GET method can be used for verifying. Here you go . 

          I hope all our Posts regarding Service Rest are simple and would have given basic knowledge on it. We did all our implementation in Pega v7.4. For the implementation purpose, we created only one Service Rest rule with all 4 methods explained.  Based on your application requirement, you may also create separate Service REST rule for each which is correct too.

Hope you liked the above posts on Service REST. 😊
Happy Learning!!

Popular Posts