Last Profile Visit Time
The Last Profile Visit Time plugin provides the time difference between the current time and the last visit time of a user profile.
This documentation is for the plugin version 0.7.3.
The Last Profile Visit Time plugin is used to evaluate the last visit time of a user profile. It works by assessing the visit field in the profile metadata. If a recent visit is recorded, the plugin determines the amount of time passed since the last visit. However, if no recent visit is recorded, the plugin considers the profile insertion time as the last visit.
It calculates the time differences in various units, such as seconds, minutes, hours, days, and weeks. If the timestamp recorded for the last visit is not a datetime object, an error message is generated.
Note: This plugin is unable to fetch visit times if no profile data is present.
Inputs and Outputs
The plugin accepts a payload of any JSON-like object as an input.
Here's an example of a typical input:
The output from the plugin is a JSON object containing the timestamp of the last visit (last) and the time difference (difference) in various units.
Here's an example of a typical output:
Please note that this plugin cannot start a workflow.
This plugin does not require any configuration.
This plugin does not require any configuration thus there's no JSON configuration.
This plugin does not require external resources to be configured.
The following error can occur during the operation of the Last Profile Visit Time plugin:
- "Can not get last profile visit for without a profile." - This error occurs when there is no profile data available for fetching the visit times.
- "Last visit is not a date. Expected datetime object got type." - This error occurs when the last visit time is not recorded as an expected datetime object. Here, type is the unexpected data type of the last visit time.