---
title: "Functions & OXL | Owlie"
description: "Combine request forms, Functions, expressions, reactions and Custom Actions into the workflow you run. Functions are sandboxed and versioned, and every run is recorded."
canonical: "https://owlie.com/platform/extensibility"
---

Functions & OXL

# When your process doesn’t fit, add the step it needs.

Combine request forms, Functions, expressions, reactions and Custom Actions into the workflow you run. Your code is versioned, and every run is recorded.

[Sign Up Free](https://owlie.com/signup) [See the whole platform](https://owlie.com/platform)

Figure: A Resource whose approval stage uses a Function as its approver. Illustrative example.

## Your process, assembled from parts.

Each example is one need and the building blocks that meet it.

### A laptop order

1. Resource: The “Laptop” Resource is a Task, so it runs fulfillment without creating access.
2. Form: The request form asks for the operating system, the model, a needed-by date and a reason.
3. Approval Function: An approval Function reads the answers and approves, rejects, or passes the request to the manager.
4. Fulfillment: IT receives a ticket with the submitted form on it.

### Production access

1. Form: The request form asks which environment is needed: staging or prod.
2. Approval Function: An approval Function sends prod requests to the app owner and approves the rest.
3. Custom Action: A Custom Action adds “Flag for security review” to the request’s actions menu for the security team’s role.

### A start-date welcome

1. Reaction: A reaction runs three days before each person’s start date, once per date.
2. Notify: The reaction notifies the person’s manager.
3. Function: A Function then calls your badge system through an allowed host, with its key kept as a secret.

Three illustrative workflows, each built from Owlie’s building blocks.

### A Function is one more approver.

An approval stage’s approver can be the manager, the app owner, a named user, a group, automatic approval, or a Function.

### Functions fit the product’s own slots.

A Function can also carry out fulfillment, choose an access reviewer, or run when a reaction fires.

### Form answers carry through.

Form answers reach the approval Function, the fulfillment code, the ticket, and the attributes written to the account.

### Custom Actions in the menu.

Custom Actions add your own operation to the actions menu on a person or a request, with an optional form and the roles you choose.

Functions

## Code that ships as a release.

A Function is your own TypeScript, run by Owlie in an isolated sandbox at the point in the product it was written for.

### One draft, one live.

Publishing puts a version live and opens a fresh draft from it, so later edits never touch what is running.

### Tested, then recorded.

Run a draft on a sample event before publishing. Owlie records each run’s outcome and timing, keeps the error and logs of a failed run, and can restore a failed test run’s request as the next test event.

### Closed to the network.

A Function reaches only the hosts you list, over HTTPS. Outbound calls are off until you list one.

### Secrets.

Secrets are encrypted, handed to the code only when it runs, and can be rotated on a live version without republishing.

### Owlie access without a key.

Give a Function roles and it can call Owlie itself, with no API key to create or store. Turn it off and its next call is refused.

Expressions

## One language for shaping values.

OXL is a small expression language, not a scripting one: each expression is bounded in size and run time and can call only built-in functions.

For example, this expression builds an account’s email address from two answers on the request form:

```
lower(formData.first) + "." + formData.last + "@corp.com"
```

Given the answers “Priya” and “raman”, the Expression Editor returns:

```
"priya.raman@corp.com"   → string
```

### Sync mappings.

OXL shapes values as they are imported from a connected source.

### CSV import.

OXL maps the columns of an imported CSV file.

### Account attributes.

OXL computes what is written to an account from the person, their manager, or the answers on the request form.

### Reaction conditions.

An expression decides whether a reaction runs for a given change.

Connector Builder fields use the same language. [Build your own connector](https://owlie.com/integrations/custom)

Related pages:

- [Access requests](https://owlie.com/platform/access-requests)
- [Provisioning](https://owlie.com/platform/provisioning)
- [Policy engine](https://owlie.com/platform/policy-engine)
- [AI & Agents](https://owlie.com/platform/ai)

## Build one step.

Sign up free, give a Resource a request form, and let a Function decide its approval.

[Sign Up Free](https://owlie.com/signup) [See the whole platform](https://owlie.com/platform)
