24 - Testing Your Voucher Action in Workshop

This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.

📖 Task Introduction

Your validation rules require you to take a few extra steps to test your new Function-backed Action:

  • You cannot apply a voucher unless you are the assignee.
  • You cannot assign a medium priority alert.

🔨 Task Instructions

  1. Select a row in your object table with a high priority.

  2. Click your Actions button group in the upper right of your module and choose the Assign Alert action. Notice that the Apply Voucher option is not visible because we previous chose to hide that button if the validation fails.

  3. Assign the alert to yourself and allow a few moments for the table to refresh.

  4. Click the object table row where you are the assignee.

  5. Click your Actions button group once again, this time choosing the Apply Voucher (which now appears because the validation rule stipulating that only the assignee can assign a voucher succeeds).

  6. In the Action form, choose a Med severity and click Submit in the bottom right of the form.

    • The Action runs each linked passenger through the Function logic and applies a new status property to each. When the Action successfully runs, the Linked Passengers drawer opens, revealing an update pie chart showing the new status values.
  7. Save and publish, and switch over the view mode to see the production version of your application.