And to add - I also tried select trigger Clockify->"New Time Entry", it will attempt to "Create Detailed Event" in Google Calendar, despite the time entry not having being stopped yet. As a result, returns a status reason "Errored" because there's no End Time.
I feel this problem could be easily solved if there's a Clockify trigger for "New Timer Ends", as such a trigger would definitely include a Start time, allowing for a complete "Create Detailed Event" in Google Calendar.
At the moment, my solution is to Clockify->"New Time Entry" and create "Create Detailed Event" with a fixed time [StartTime]+1h, creating a 1 hour event on my Google calendar, but it would ideally like my Google Calendar to reflect my Clockify 1 to 1.
Hey there @hchen — it's great to see you over here!
Just to recap my answer over on Reddit for you, I think your solution will be to
- use the "New Timer Started" trigger like you're already using it.
- Then either create a Google Calendar Entry with a default end time like you are currently or wait to create it when we have all the data we need.
- Then add a "Delay" step to your Zap for some predetermined period of time that's long enough to allow most of your time entries to be completed.
- After the "Delay" step, add a "Search" step to your Zap that uses Clockify's "Find Time Entry" Search action to locate the time entry from your trigger step.
Assuming that the Search step returns the timeInterval__end value from your Time Entry, then you can set up Paths to decide what to do next.
For example:
- Path A might proceed if the timeInterval__end value is later than the timeInterval__start value (using Zapier's "Date/Time After" function to compare the two values, which might be slightly more reliable than the "Exists" function). If so, the Path A should have a Google Calendar "Update Event" Step to go back and modify the calendar entry from earlier.
- Then Path B might proceed if the timeInterval__end value is not later than the timeInterval__start value, in which case you might introduce another (possibly longer) Delay step followed by another Search step and then finishing with the step that updates your calendar entry.
- On the odd chance that you accidentally leave a timer running, I don't know what Clockify does. If, by chance, it never stops the timer (or stops it only well after your 2nd delay time in Path 😎, then you might set up a Path C that does something useful like sending you an email to tell you to go check your timer and manually change your Google Calendar entry.
If you don't get a timeInterval__end value from your search step, then we'd need to take a look at what values that step returns and then we can figure out what to do from there.
I hope this helps!
Incidentally, in case you're curious about this: often the integrations between Zapier and a third-party app like Clockify are actually written by the app's developers. So the availability of a certain trigger is often outside of Zapier's control. But even if they had written it themselves, any developer of an integration like this one often relies heavily upon user feedback to determine what's useful about it and what might be more useful. So it's super helpful to let them know (probably both Zapier and Clockify in this case, since we don't know who wrote the integration) that you'd like a trigger that only fires once the timer has stopped. I can definitely see how that would be very useful myself!
Thanks David for your solution.
I have personally emailed Clockify about this issue myself just now.
As I really do enjoy what Zapier and Clockify does, I am determined to get an easier user-friendly solution - either a clarification/fix on the currently existing triggers or to have another trigger "When Timer Ends" implemented and would like to keep this question unanswered until a solution comes up (whether it would be from Zapier or Clockify).
@TheDavidJohnson That's a great workaround, thanks for sharing!
@hchen I took a look at the Clockify App and I can see that this is a known issue - the New Time Entry trigger doesn't give you the End time or duration. I've added you as an affected user on that issue, which let's the Clockify Team know how many users are affected and also means that we'll send you an email when we have an update on that.
Hey @hchen - happy to see you took my suggestion to bring this question over from Reddit
You're welcome, @hchen — I hope the solution works until you can get what you're hoping for! I admire your determination to get a fix!
@Danvers glad to help out! Thanks for diving in and bringing some clarity to the status of the issue!
Hi @Luhhu
Update : issue has been rectified on Clockify's end and "New Time Entry" is working as intended with Google Calendar. Zapier and Clockify were great at handling this.
Very nice, @hchen! Thanks for the update!