I hope this message finds you well.
I would like to log the event of an interface being opened. However, my understanding is that on the interface itself, unless an action such as clicking a button occurs,
it is not possible to write a record or start a process model.
When consulting ChatGPT, I received the following idea:
However, it seems that the function a!writeToDataStoreEntity does not get triggered inside the Web API.
I have two questions and would appreciate your advice:
Thank you in advance for your kind advice.
Discussion posts and replies are publicly visible
If you absolutely must have this, it's pretty easy to create an Appian Web API that accepts key info (i.e. the username of the current user, and the name or some sort of identifier for the interface in question), which you can then call from the interface at load time in a local variable declaraion calling an Integration. The API would simply launch a process model that quickly makes an entry for that username and that identifier in a DB table you have previously created, as well as a "loaded at" timestamp.
I've implemented something like this for myself and decided to limit the DB table to 1 row per user per day per interface, so when it launches for a particular user, if there's already a row for that date/user/interface, it updates the existing row (incrementing an "updated" timestamp, as well as a "counter" that starts at 1 and increments for every unique load by that user). This is slightly extra work of course but has been pretty useful to me and our management team in tracking overall site usage.