Zapier – Trigger – User Access Info
  • 08 Jul 2022
  • 3 Minutes to read
  • Dark
    Light

Zapier – Trigger – User Access Info

  • Dark
    Light

Article summary

We offer a Zapier trigger that will poll our database in order to return a list of active users and their sign in activity. This trigger is useful to take actions based on last access date/time. An example of use, would be to tag in your CRM of choice, all users that have not signed in to LSVT in the past 7 days.

Get Started

Trigger Setup

Click here to access your Zapier Zaps.

Create a Zap

2021-07-19_11-36-43

On the resulting screen, choose to create a trigger and search for LightSpeed VT app. Then select the app.

2021-07-19_11-40-52

After choosing LightSpeed VT app, select Access Info as the trigger event and click continue.

2021-07-19_11-43-24

Choose your LightSpeed VT Zapier account from your list of connected account.

2021-07-19_11-49-19

If you never connected your account previously, please refer to this article.

Next, you will be presented with query parameters that will allow you to filter out data. All are optional.

  • System Id: If your API account gives you access to multiple systems, you should narrow down your search by specifying a system id
  • Location Id: Results would be for the specified location id
  • User Id: Would return only 1 record for the specified user
  • Starting Access Date: Returns records for users that accessed LSVT after specified date
  • Ending Access Date: Returns records for users that accessed LSVT before specified date

2021-07-19_13-06-25

The final trigger step is to test the trigger.

2021-07-19_13-38-41

The test will retrieve sample data that will provide several fields and their corresponding values: id, userid, firstName, lastName, jobPosition, team, accessDate, accessIP, locationId and email.

2021-07-19_13-39-46

Date Formatting Part 1

Before you set up an Action, you will need to format the date/time sent in the response from the trigger you just created, to match Zapier format and timezone.

Click on Format to add a formatting step.

2021-07-19_14-12-25-1

Then choose Date / Time from the Action Event menu choices and continue.

2021-07-19_14-53-17 (1)

On the next step, choose to transform using Format.

2021-07-19_14-55-47 (1)

For Input value, look for the Last Access Date/Time in the list of sample data.

2021-07-19_14-58-14

The next options are:

  • To Format, choose MM/DD/YY (01/22/06)
  • To Timezone, choose UTC
  • From Format, do not specify anything
  • From Timezone, choose US/Pacific

2021-07-19_15-14-21

You can then test the action.

2021-07-19_15-15-15

You should rename this step to avoid confusion and allow you to distinguish the various steps later on.

Date Formatting Part 2

You will need to add another formatter action before finalizing your zap. Click the + icon below the formatting step you just created to add a new step.

2021-07-19_15-18-03

You will follow almost the same instructions as before, by choosing “Format” for action again.

2021-07-19_15-19-53

Then choose Date / Time from the Action Event menu choices and continue.

2021-07-19_14-53-17

On the next step, choose to transform using Format.

2021-07-19_14-55-47

This time, for Input value, you will need to type in: {{zap_meta_human_now}}. This code will retrieve the date/time when the Zap runs, which will be used later on to compare the time difference between the last access and the Zap.

As soon as you enter {{zap_meta_human_now}} into the field, it will transform to show as in screenshot below (Zap Meta Human Now: No data)

2021-07-19_15-27-26

The next options are:

  • To Format, choose MM/DD/YY (01/22/06)
  • To Timezone, choose UTC
  • From Format, do not specify anything
  • From Timezone, set to the timezone configured for your Zapier account

2021-07-19_15-35-43-1

Test the action and continue.

2021-07-19_15-37-34

You should rename this step to avoid confusion and allow you to distinguish the various steps later on.

Optional Filter

Depending on your needs, you may want to add a filter to your Zap to only process Zaps that are matching your criteria. For example, only send Zaps with users that did not sign in the past 7 days and send them an email or add a tag to their customer record in your CRM.

To create a filter, click the + icon below your last step action and choose Filter.

2021-07-19_15-42-08

Configure your desired settings by first choosing the data that will be used for comparison.

For this article, we will first select the formatted date we created in step 1.

2021-07-19_15-50-30

Then (Date/time) Before for condition

2021-07-19_15-52-05

and finally choose the Zapier formatted date you created in the second formatting step.

2021-07-19_15-54-08

Then type a space and add -7d and click continue.

2021-07-19_15-58-27

This filter would only send a Zap for any users with a last LSVT access that is 7 days before time of polling from Zapier.

Final Action

Click on the + icon at bottom to create the final action to be taken. You can choose any Apps and follow the same principles from any other Zaps to send data to your app.

Example below is for sending data to a Google Sheet

2021-07-19_16-08-14

Turn on your Zap. Data will be retrieved everyday shortly after midnight in your timezone.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.