(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

Procedure

  1. In the Process Builder, in the Activity Library, open the Web Services tab.
  2. On the Web Services tab, drag the REST Service 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 to go back to the REST Response Configuration screen.
  15. Select Map Schema .
  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.