How to build a complete app: table, app, approval process and report
From an empty environment to a working expense-claims app: a table, a form and a view, an app shared with a role, an approval process and a printable report. Every step of how-to video H001.

How-to H001 · 10 min 41 s. A complete tutorial: every click, every value and every line of code the video types, so you can build the same app at your own pace. Every picture is a frame of the video.
This is the longest how-to, and the one to start with. You build an expense-claims app in an empty environment, in five parts:
- The table: a publisher, a solution, a list of statuses and the Expense Claim table.
- The app: a form, a view, a security role and the Expenses app, shared with the people who use it.
- The process: an approval that starts by itself when a claim is saved, and gives the manager a task.
- The report: a printable list of claims, in the app's navigation.
- Run it: an employee raises a claim, and their manager approves it.
Each part also has its own short how-to, linked at the end, if you want to go deeper into one of them.
Before you start
- An environment with nothing built in it. The video uses one called Expenses.
- An administrator account, signed in to the Admin Control Center (the maker portal).
- Two more user accounts, for the people who use the app. The video uses Robin Park, an employee, and Sam Taylor, Robin's manager. Add them under Admin › Users if you don't have two people to hand.
Allow about 30 minutes the first time.
Part 1: The table
1.1 Create a publisher
Everything you build belongs to a publisher, and the publisher's prefix starts every name you create.
-
In the rail on the left, under Admin, select Publishers.
-
Select New.
-
Fill in the panel:
Field Value Display name FabrikamPrefix fab -
Select Add.
The prefix can never be changed, because every table and field name is built from it. From now on,
the expense table is fab_expenseclaim and its amount field is fab_amount.
1.2 Create a solution
The solution is the package that holds the whole app, so it can be moved to another environment later.
- Select Solutions in the rail, then New.
- Type the display name
Expense Claims. - Under Publisher, pick Fabrikam (fab_).
- Select Save.
The solution opens on its Overview, and the rail changes to the solution's own menu: Tables, Option Sets, Forms, Apps, Processes, Reports and the rest. Everything from here on is done inside this solution.
1.3 Make the list of statuses
A claim is Submitted, Approved or Rejected. A fixed list like that is an option set, and it has to exist before a field can use it.
- In the solution's rail, select Option Sets, then New.
- Type the display name
Claim Status. - Under Options, type the first label,
Submitted, and select the colour square beside it. Pick amber. - Select Add option, type
Approvedand pick green. - Select Add option, type
Rejectedand pick red. - Select Save.
| Label | Colour |
|---|---|
| Submitted | Amber #f59e0b |
| Approved | Green #22c55e |
| Rejected | Red #ef4444 |
Each option gets a number when you save, taken from your publisher's range (for example
270200000, 270200001 and 270200002). Open the option set again and note the three numbers:
the process scripts in Part 3 use them. Yours depend on your publisher, so they may differ from
the video's.
1.4 Create the table
- Select Tables, then New.
- Type the display name
Expense Claim. The logical name fills itself in asfab_expenseclaim. It can't be changed after you save, so check it now. - Type the plural name
Expense Claims. - Select No icon, type
receiptin the search box and pick the Receipt icon. - Select Save.
The table opens on its Fields. It already has Name (fab_name), the primary field that
labels every claim.
1.5 Add the fields
- Select New. The New field panel opens.
- Add the four fields below. After each one, select Save & New, which saves the field and opens the panel again. After the last, select Save.
| Display name | Logical name | Data type | Settings |
|---|---|---|---|
| Amount | fab_amount |
Decimal | Tick Required |
| Expense Date | fab_expensedate |
Date/time | Default control: Date (no time) |
| Status | fab_status |
Option set | Option set: Claim Status |
| Description | fab_description |
Multiline text |
Check it: the Fields list shows Name, Amount, Expense Date, Status and Description, each with its own data type.
Part 2: The app
2.1 Put the fields on the form
Every table starts with a form called Information. A new field isn't placed on it by itself.
- In the table, select Forms and open Information.
- From Available fields on the left, drag Amount, Expense Date and Description into the General section, under Name.
- Drag Status into the header band at the top (the box that says Drag a field here), so it shows beside the claim's name on every tab.
- Select Status in the header and tick Read-only. Nobody types the status: the approval process sets it.
- Select Save.
2.2 Set up the view
The view is the list people work in.
- Select Views and open All Expense Claims.
- Drag Created By, Amount, Expense Date and Status into the view's columns, after Name.
- Select Save.
2.3 Create a security role
A role says what its people may do with each table.
- Go back to the solution, select Roles, then New.
- Type the display name
Expense Userand select Save. The role opens on its permissions. - On the Expense Claims row, set Create, Read and Update to Every record.
- Select Save.
2.4 Create the app
-
In the solution, select Apps, then New.
-
Fill in the panel:
Setting Value Display name ExpensesTakes part in business processes Ticked. This gives the app's users a My Tasks list, which the manager needs in Part 5. Group 1 title ClaimsGroup 1 tables Select Add table to group 1 and pick Expense Claim ( fab_expenseclaim).Home page Expense Claim -
Select Add.
2.5 Share the app and give people the role
An app opens only for the roles it is shared with.
- In the Apps list, tick Expenses and select Share.
- Tick Expense User and select Save.
- In the rail, under Admin, select Users and open Robin Park.
- Select Manage roles, type
Expensein the search box, tick Expense User and select Save. - Do the same for Sam Taylor.
Part 3: The approval process
3.1 Create the process
- In the solution, select Processes, then New.
- Type the display name
Expense Approvaland the descriptionA manager approves or rejects each expense claim. - Select Save.
- Tick Expense Approval in the list and select Design.
3.2 Make the manager's buttons (the coform)
A coform is what a person sees when they finish a task. Its outcomes are its buttons.
- In the designer, open Coforms and select New.
- Type the display name
Approve claim. Its logical name becomesfab_approveclaim. - Under Outcomes, fill in the first row: value
approved, labelApprove. - Select Add outcome and fill in the second row: value
rejected, labelReject. - On the Reject row, set the style to Destructive and tick the box that makes a comment required, so nobody rejects a claim without saying why.
- Select Save.
| Value | Label | Style | Comment |
|---|---|---|---|
approved |
Approve | Normal | Optional |
rejected |
Reject | Destructive | Required |
3.3 Name the lanes
- Go back to Flow, and select the full-screen button at the top right of the canvas, to give yourself room.
- Select each lane's name and rename it. Press Enter after each one:
- Lane 1 →
Employee - Lane 2 →
Manager - Lane 3 →
System
- Lane 1 →
- With the System lane selected, set its Height to
280, so the two script steps fit.
3.4 Draw the steps
Drag each shape from the toolbar into its lane. After each drop, type its Title in the properties panel and press Tab.
| Shape | Lane | Title | Type |
|---|---|---|---|
| Start | Employee | Claim submitted |
|
| Task | Manager | Approve claim |
User (a person does it) |
| Task | System | Mark approved |
Script |
| Task | System | Mark rejected |
Script |
| Finish | System | Done |
3.5 Connect them
- Select Connect in the toolbar.
- Drag from each step to the next:
- Claim submitted → Approve claim
- Approve claim → Mark approved
- Approve claim → Mark rejected
- Mark approved → Done
- Mark rejected → Done
- Press Escape to stop connecting.
- Open View and select Auto arrange to tidy the diagram.

3.6 Set up the manager's task
Select Approve claim and fill in its properties:
| Property | Value |
|---|---|
| Coform | fab_approveclaim (Approve claim) |
| What they look at | The record's form |
| App | Expenses |
| Table | Expense Claim |
| Assigned to | the code below |
| Record | the code below |
Assigned to says who gets the task. Select the row to open its code editor and type:
user("Sam Taylor")
Record says which claim the task is about: the one that started the run.
getRecordRef("record")
getRecordRef("record") is the record the process was started for. You will use it in every
script below.
3.7 Say which way each button goes
Each connection out of Approve claim is taken when one of the coform's buttons is pressed.
- Select the connection from Approve claim to Mark rejected. Set Taken when to Reject
and type the title
Rejected. - Select the connection to Mark approved. Set Taken when to Approve and type the title
Approved.
3.8 Write the scripts that record the decision
A Script task runs BS Lang, the platform's scripting language, with nobody involved. Each one writes the decision onto the claim.
Select Mark approved, open its On enter code row and type the following. Use the Approved value you noted in step 1.3:
updateRecord("fab_expenseclaim", getRecordRef("record"), { "fab_status": 270200001 })
Select Mark rejected, open its On enter row and type the following, with your Rejected value:
updateRecord("fab_expenseclaim", getRecordRef("record"), { "fab_status": 270200002 })
updateRecord(table, record, values) changes the fields you name on one record and leaves the
others alone. An option-set field takes the option's number, never its label, so renaming an
option later doesn't break the script.
3.9 Say when it starts
- Select the process itself (Expense Approval at the top of the outline on the left).
- Change Nobody — it is started by hand to A record is created.
- Under Choose a table, pick Expense Claim.
- Open the On start code row and type the following, with your Submitted value, so a new claim is marked Submitted the moment it is saved:
updateRecord("fab_expenseclaim", getRecordRef("record"), { "fab_status": 270200000 })
3.10 Check, save and publish
- Look at the problems panel. It should say Nothing wrong with this process. If it lists a problem, select it to go to the step it's about.
- Leave full screen, and select Save.
- Select Publish. The designer says Published as version 1.
From now on, every claim anyone saves starts a run and goes to Sam.
Part 4: The report
4.1 A saved query
A report reads its rows from a saved query.
- In the solution, select Saved Queries, then New.
- Type the display name
Expense claimsand, under Table, pick Expense Claim. - Leave the columns empty: with no columns picked, the query returns them all.
- Select Save.
4.2 The report and its dataset
- Select Reports, then New.
- Type the display name
Expense claim. - Under the dataset's saved query, pick Expense claims.
- In the record field, type
id. This lets the report print one claim from that claim's own form, as well as all of them. - Select Save.
4.3 Design the page
- Tick the report and select Design.
- Open Insert and select Report page. This adds a page with a header, a row that repeats once per claim, and a footer.
- Select the first text in the repeating row (in the video it is Text 24 in the layers list). On the Report
tab, bind it to
row.fab_name. - Select the second text (Text 25). Bind it to
row.fab_amountand set its format to currency. - Select Save.
4.4 Share it and put it in the app
- Go back to Reports, tick Expense claim, select Share, tick Expense User and select Save. A report runs only for the roles it is shared with.
- Select Apps, tick Expenses and select Edit.
- Select Add report to group 1, pick Expense claim and select Save.
The app is built.
Part 5: Run it
5.1 The employee raises a claim
- Sign in to the environment's own address (the Open button beside the environment on Home gives it) as Robin Park. The Shell shows the one app shared with Robin: Expenses.
- Open it, and select New.
- Fill in an amount, a name (the video uses Taxi to client meeting), the date of the expense and a description.
- Select Save & Close.
Saving the claim started the approval, so its Status already reads Submitted.
5.2 The manager approves it
- Sign out, and sign in as Sam Taylor. Open Expenses.
- The tray at the top shows a task waiting. Open My Tasks.
- Select the task and choose Open. The claim opens read-only, with the task's bar along the bottom.
- Select Decide, then Approve.

Refresh the page. The status now reads Approved, written by the Mark approved script.
5.3 Print the claims
The report is in the app's navigation, under Claims. Open Expense claim, and every claim is laid out on a printable page.

If something goes wrong
- Robin sees no app. The app isn't shared with Expense User, or Robin doesn't have the role. Check step 2.5.
- The status stays empty after saving. The process isn't published, or its trigger isn't on Expense Claim. Open it in the designer and check steps 3.9 and 3.10.
- The status is set to the wrong value, or the script fails. The number in the script isn't one of your Claim Status options. Open the option set, copy the right number and publish the process again.
- Sam has no My Tasks. The app isn't ticked Takes part in business processes (step 2.4).
- The report says you can't run it. It isn't shared with a role Sam has (step 4.4).
What you built
| Part | What it is | Its name |
|---|---|---|
| Publisher | Who owns the work, and the prefix | Fabrikam, fab |
| Solution | The package that holds it all | Expense Claims |
| Option set | The list of statuses | Claim Status |
| Table | One row per claim | fab_expenseclaim |
| Role | What its people may do | Expense User |
| App | Where people work | Expenses |
| Process | The approval, with a task and two scripts | Expense Approval |
| Report | The printable list | Expense claim |
A claim is raised, it reaches the right person, the decision is written back on the record, and the paperwork prints. The next how-tos take each part further: a process with a branch in H002, a phone app on the same table in H003, and moving the finished solution to Test and Production in H005.
Read more
- The feature, explained: Your first app, shared with the people who need it.
- Each part on its own: create a publisher, create a solution, create an option set, create a table and add a field.
- The next how-to: How to create a process and run it from start to end.
- Every how-to: the How-tos category.
Is there a task you would like to see done step by step? Tell us. parsware.com/contact