# Outcomes, tags and documents

Name the ways a job can finish, label jobs with tags, and turn a job into a printable document.

Source: https://support.rework.com/article/outcomes-tags-and-documents

Three small settings make a service much easier to report on and work with. **Outcomes** record _how_ a job finished, not just that it did. **Tags** let steps label jobs so they're easy to filter. **Documents** turn a job's data into a Word or PDF file, such as a purchase order, so nobody has to copy values by hand.

You'll find all three in the service's settings: open the service, click the gear icon next to its name, and pick the section from the menu.

> **Note:** You need to be an owner of the service, or an **App Admin**, to change these settings.

## Step 1: Review the outcomes

1. Click **Outcomes**.
   
2. The table lists every outcome the service can end with: its **Code**, its **Label**, its **Result** (**Done**, **Failed** or **Cancelled**) and whether it's on. System outcomes, such as `completed`, `cancelled` and `rejected_no_route`, are always on.
   
3. Click **Add custom outcome** to add one of your own, for example _Purchased_ or _Out of budget_. You choose whether it ends a job as **Done** or **Failed**; that choice can't be changed afterwards, so pick carefully.
   

![Outcomes section with the system outcomes and the Add custom outcome button](https://storage.googleapis.com/reworkv3-public/success/260923/fweTgdGCaSlcYGX4Vrp6RbCuGi3g1cQegRWRU744hrgxA17KhvhmTHSwI7ASkfHD/img.q403c8kzxIr31E6X9Hxfi2sDvp1VOLmuPTo06yYiZUMvqFUMbxEkHyzxk865QV8r.png)

Custom outcomes appear in the Builder when you set up an **End Flow** step, and in the outcome filter on the service and in [Reports](https://support.rework.com/article/reports). Switch one off to hide it from pickers and filters without losing the jobs that used it.

**Example of outcomes for a Purchase Request**

| **Outcome** | **Result** | **When** |
| --- | --- | --- |
| Purchased | Done | The order was placed. |
| Not approved | Failed | Finance rejected the request. |
| Out of budget | Failed | The request was valid but the quarter's budget is spent. |
| Cancelled | Cancelled | The requester withdrew it. |

## Step 2: Create tags

1. Click **Tags**.
   
2. Under **Service tags**, click **Add tag** and give the tag a name and a colour, for example _Urgent_ or _Needs quote_.
   

![Tags section with the Add tag button](https://storage.googleapis.com/reworkv3-public/success/260923/9dgsbiyPg0tbX0mNeP06axFFTVcytbAlsUTvME0nv7nLTShmzzGh5xOKSkxeCkjW/img.CLpLMzH68bHVwsih8LvxMiNTo5hkI7RvRDV0zJq4FwGfFqqD9qz8WeeQ2OJ5WKVp.png)

Tags are applied by steps: in the Builder, open a Custom Step or an Approval and set the tags it adds or removes under **Applied on entry**. An active job carries the tags of every step it has passed, so you can filter for, say, every purchase still tagged _Needs quote_. You can also change a job's tags by hand with **Edit tags** in the step action menu (see [Job actions](https://support.rework.com/article/job-actions)).

## Step 3: Add a print template

1. Click **Documents**.
   
2. Click **Upload template** and choose a Word (.docx) file.
   
3. Open **Available template variables** to see every placeholder you can use, and copy the ones you need into your file, for example `${item}` or `${amount}`.
   

![Documents section with Upload template and the list of available template variables](https://storage.googleapis.com/reworkv3-public/success/260923/mFfPq8ypBLAr7gtVuA0KFG1WF1aA2x0puzzeEn6j0Cd6ypQTcGCz5Nr2LMkFL1Lx/img.WRHKqRJWhIvs3XbaCiW0lLgJaMxMU5LbDutWcqAyK2TbD7KOJtzBGU4FhwpXaAGl.png)

Click **Save**. When someone prints a job with **Print / Export**, each placeholder is replaced with that job's data. A template can also be printed as a PDF, optionally stamped with a QR code that links back to the job.

> **Note:** Field keys are shown in the Builder under **Data & fields**. A field with the key `needed_by` becomes `${needed_by}` in a template. See [Collect the right information](https://support.rework.com/article/collect-the-right-information).

That's all three set up ✅
