Custom Software Services for Forward-Thinking Organizations

View Original

Record Update Log (Object Based)

Hello Folks!

Today we’ll show you what and how to record the sequence of events of each user in a knack application. Please take into consideration that everytime someone in the platform performs an action such as insert, edit or delete, it must be logged in a table. This way you will be able to keep an internal control of all movements made in the application by all users for audit purposes.

The most important data to record in the log are:

  • User who carried out the event

  • Date and Time

  • The object

  • If it was an insert / update or delete

Below we outline the process for the implementation of the Record update log:

1. Create new Object in Builder

2. Add 4 fields to new Object:

  • Action as Multiple Choice with 3 options (insert, update, delete)

  • Object Name as Short Text

  • User as Connection with Default User Object

  • Date/Time with default date and time options selected

3. Insert the following code in the API & Code section of the APP (replace your information):

See this content in the original post

4. As users use the Knack forms to add, update, or delete records, the log records will be visible in the new object created in step 1:

We hope you can incorporate this in all your Knack applications!

Let’s Make IT Happen!