(Example) Configure a REST Activity to Get the Leave Information

To configure the Get Leave Information REST activity to store the leave information, do the procedure in this topic.

Prerequisites

Good to Know

How to Start

  1. (Example) Create a Process-Based Application for an Absence Request.

Procedure

  1. In the Process Builder, in the Activity Library, open the Web Services Web Services icon tab.
  2. On the Web Services Web Services icon tab, drag the REST Service REST Service icon activity onto your process.
  3. On the General Configuration screen, in the Display Name field, enter Get Leave Information.


  4. Click Next.
  5. On the REST Access Token screen, in the REST Service list, select REST Access Token.


  6. Click Next.
  7. On the REST Request Payload Configuration screen, select Custom Payload.


  8. Click Next.
  9. On the REST Response Configuration screen, select Map Response to Process Schema.


  10. Select Get Response from Simulation.


  11. Click Simulate.
  12. On the REST Response Configuration > Simulate screen, click Simulate.


  13. Click Save.
  14. Click Back Back icon to go back to the REST Response Configuration screen.
  15. Select Map Schema Map Schema icon.
  16. On the REST Response Configuration screen, map the AvailableHrs response to the LeavesAvailable process data variable.


  17. Click Finish.

Download Files

This file has the REST service used in this example. You can deploy this service in your environment to test it.