Skip to content

Commit 6a25f21

Browse files
Merge pull request Expensify#65819 from Expensify/RachCHopkins-patch-1
[No QA] Update Set-Custom-Report-Names.md
2 parents 6528013 + 1d0355f commit 6a25f21

1 file changed

Lines changed: 80 additions & 11 deletions

File tree

docs/articles/expensify-classic/reports/Set-Custom-Report-Names.md

Lines changed: 80 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,97 @@ keywords: [Expensify Classic, default report title, report naming, enforce repor
55
---
66
<div id="expensify-classic" markdown="1">
77

8-
Workspace Admins can automatically apply a custom report title to all reports created within a specific workspace. You can also enforce this setting so members can't update it.
8+
Automatically generate standardized report titles across your workspace using formulas. Admins can pull in dynamic data like report type or member name, and even lock naming rules to prevent edits.
99

1010
---
1111

12-
# Set a Default Report Title
12+
# Customize Report Titles Using Formulas
1313

14+
**Navigation:**
1415
1. Head to **Settings > Workspace > [Workspace Name] > Rules**.
1516
2. Scroll to **Custom Report Names**.
16-
3. Configure the title formula:
17-
- Use the example on the **Rules Settings page**, or refer to more [report formula options](https://help.expensify.com/articles/expensify-classic/spending-insights/Custom-Templates).
18-
- Some formulas automatically update the report title as changes are made. For example, the title will update before submission if the formula includes the report date, total amount, or workspace name.
19-
- Changes to Report Field values (e.g., `{field:Customer}`) won't update the title until the report is submitted. After submission and before approval, updates will apply automatically. Once a report is Approved or Reimbursed, the title will not update retroactively.
17+
3. Configure the title formula using your preferred formulas (see below).
2018
4. To prevent members from editing the title, enable the **Enforce Custom Report Names** toggle.
2119

20+
**Example formula:**
21+
`{report:type} - {report:submit:from:firstname} {report:startdate}`
22+
**Result:** `Expense Report - Alice 2025-05-15`
23+
24+
---
25+
26+
# How Dynamic Titles Work
27+
28+
- Custom report names update automatically when the value of the fields they reference is updated. For example:
29+
- {report:total} will update when new expenses are added to the report.
30+
- {report:workspaceName} will update when the workspace name changes.
31+
- Report titles freeze once a report is **Approved** or **Reimbursed**.
32+
- Fields related to report submission are snapshots of the data at the time the report was submitted. For example:
33+
- {report:submit:from:firstName} may capture the first name of Joanne and won't be updated if Joanne changes her first name to "Jo" in Expensify
34+
- The report title will need to be manually edited by an admin, or the report unapproved and submitted again
35+
36+
---
37+
38+
# Report Title Formula Reference
39+
40+
## Report-level data
41+
42+
| Formula | Example | Description |
43+
| -- | -- | -- |
44+
| `{report:id}` | R00I7J3xs5fn | Unique report ID in a base 62 representation |
45+
| `{report:oldID}` | R3513250790654885 | unique report ID |
46+
| `{report:total}` | $325.34 | Total amount on report |
47+
| `{report:type}` | Expense Report | Report type (Expense Report, Invoice, Bill) |
48+
| `{report:reimbursable}` | $143.43 | Reimbursable amount |
49+
| `{report:currency}` | USD | Currency used |
50+
| `{field:Employee ID}` | 123456 | Custom field from the report |
51+
| `{report:created}` | 2024-09-15 12:00:00 | When report was created |
52+
| `{report:created:yyyy-MM-dd}` | 2024-09-15 | Created date (custom format - see below for more formats) |
53+
| `{report:startdate}` | 2024-09-15 | Earliest expense date |
54+
| `{report:enddate}` | 2024-09-26 | Latest expense date |
55+
| `{report:submit:date}` | 2023-09-15 12:00:00 | Submission time |
56+
| `{report:submit:date:yyyy-MM-dd}` | 2023-09-15 | Submission date (formatted) |
57+
| `{report:approve:date}` | 2011-09-25 12:00:00 | Approval timestamp |
58+
| `{report:approve:date:yyyy-MM-dd}` | 2011-09-25 | Approval date (formatted) |
59+
| `{report:expensescount}` | 10 | Number of expenses |
60+
| `{report:workspaceName}` | Sales | Name of the workspace |
61+
| `{report:status}` | Approved | Current report status |
62+
| `{report:submit:to}` | alice@email.com | Approver’s email |
63+
| `{report:submit:from}` | Sally Ride | Submitter full name |
64+
| `{report:submit:from:firstname}` | Sally | Submitter’s first name |
65+
| `{report:submit:from:lastname}` | Ride | Submitter’s last name |
66+
| `{report:submit:from:fullname}` | Sally Ride | Submitter full name |
67+
| `{report:submit:from:email}` | sride@email.com | Submitter email |
68+
| `{report:submit:from:customfield1}` | 100 | Submitter custom field 1 |
69+
| `{report:submit:from:customfield2}` | 1234 | Submitter custom field 2 |
70+
71+
---
72+
73+
# Date Format Options
74+
75+
Customize date appearance with these formats:
76+
77+
| Format | Example |
78+
| -- | -- |
79+
| M/dd/yyyy | 5/23/2024 |
80+
| MMMM dd, yyyy | May 23, 2024 |
81+
| dd MMM yyyy | 23 May 2024 |
82+
| yyyy/MM/dd | 2024/05/23 |
83+
| MMMM, yyyy | May, 2024 |
84+
| yy/MM/dd | 24/05/23 |
85+
| dd/MM/yy | 23/05/24 |
86+
| yyyy | 2024 |
87+
2288
---
2389

24-
# FAQ
90+
# Advanced Formula Functions
2591

26-
## Can I stop team members from changing the report name?
27-
Yes! Just turn on the **Enforce Default Report Title** option, and the title will be locked in based on the formula you set.
92+
Add `|` functions to format results:
2893

29-
## What if my formula doesn't show the correct title immediately?
30-
Some formula fields, like `{field:Customer}`, only update after submission. Others, like dates and amounts, update in realtime before submitting the report.
94+
| Function | Example | Description |
95+
| -- | -- | -- |
96+
| `frontpart` | `{report:submit:from:email|frontpart}` → alice | Gets first word or string before `@` |
97+
| `substr:x` | `{report:policyname|substr:20}` → Sales Expenses | Trims to first `x` characters |
98+
| `substr:x:y` | `{report:policyname|substr:20|frontpart}` → Sales | Chains multiple functions |
99+
| `domain` | `{report:submit:from:email|domain}` → email.com | Returns email domain |
31100

32101
</div>

0 commit comments

Comments
 (0)