(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 App for an Absence Request.

Procedure

  1. In Process Builder, in the Activity Library, open the Web Services tab.

    Open Web Services tab
  2. On the Web Services tab, drag the REST Service activity onto your process.

    Drag REST Service activity
  3. On the General Configuration screen, in the Display Name field, enter Get Leave Information.

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

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

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

    Map Response to Process Schema
  10. Select Get Response from Simulation.

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

    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.

    Map Simulate Response to LeavesAvailable
  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.