How can I record users' activity in an app, such as tracking what which users viewed/edited which records?

Also known as: history, audit trail,

Let's say you want to track when a document record was viewed.

You will need to create two tables. Document and Activity.

Create a Document table. For this example, it will just have the existing short text name field.

Create a table called Activity with the following fields:

Create actions:

Go to the View page for your Document table. Bring up the actions for the “View Document” link.

Add an action to create a new Activity record. Save the Activity Type as Document Viewed Save the Created By as the current user. Save the Document as the item the page is about.

On your Activity table, you will now see a new record every time someone clicks the View Document link.