How to call a Service REST POST Automation Implementation in a Data Transform

The scenario is the user will click on a button, and that refreshes the section and runs a data transform. In the data transform, the Service REST POST needs to be called/invoked. How do we call/use a Service REST in the data transform? Thanks!

@miecaelagarcia

  1. Create a connect-Rest rule for the service .
  2. Add above created connect-Rest rule inside a Data Page.
  3. If service have any values that we need to pass add those as part of request Data transform in the Data page.
  4. Call this Data Page inside your Data transform.

@miecaelagarcia

Create the Data page and configure the source as Connector and type as REST and call the Rest connector. In this way you can achieve your requirement.

Hi @miecaelagarcia,

This requirement is quite unique, but you have to understand that if you have a “Service” in pega that means pega itself is the service provider.

Hence you should not use connect rest as service provider does not need to consume its own service to use it.

Call the service activity mentioned in service rest rule in the data transform and it will fulfill your requirement.(Use correct activity as there can be multiple service activity in service rest based on different HTTP methods)

Hope it helps!

Thanks, Ankit