Store App Visits to an Access Log App
Overview
This article introduces how to create an Access Log App on Kintone that records users' visits to Kintone Apps. When a user accesses the App, the App ID, the Record ID, the date and time of the access and the user name is recorded in an App.
Sample Image
When users access a record of an App that includes the sample JavaScript customization, it sends data to an Access Log App.
Prepare the App
Create an App that includes any types of fields. Save the form when finished.
Field type | Field name | Field code |
---|---|---|
Number | App ID | App_ID |
Number | Record ID | Record_ID |
Created by | User | User |
Created datetime | Datetime | Datetime |
Sample Code
Type the following code into a text editor and save it as a JavaScript file. Replace the value of the app
parameter to the App ID of the App where the access log will be stored. Navigate to an App that will track the users' access to the records. Upload the sample JavaScript file to App's
JavaScript and CSS Customization settings
.
|
|
After saving the settings, update the App. Navigate to any record of the App. The App ID, Record ID, Date and the User data should be added in as a record inside the Access Log App.