18 - Backing an Action with a Function

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

📖 Task Introduction

The OMA interface is sufficient for most Action-centered workflows. Recall that in this case, we wanted to insert business logic between the user input in an Action form (a flight alert and a “severity” measure) and Ontology changes. For this, we required a Function.

🔨 Task Instructions

  1. In a new browser tab, open your flight alert object type to its Overview tab in OMA.

  2. Click the ⊕ Create new button in the Action Types block.

  3. Apply the following settings in the Create a new Action Type window:

    • Action Type: Function → Search for and select your published function (e.g., jmeierAlertVoucher)
    • Metadata: Action Name → [yourName] Apply Voucher (e.g., [jmeier] Apply Voucher)
    • Security: User → By default, your name is displayed. Leave this as-is for now and we'll update it in a later task.
  4. Click the blue Create button at the bottom right of the window.