I created a workflow to record each Strava activity on a Google Sheet and on Google Calendar.
Everything went well for the first activities.
Recently, the workflow has been activated several times (at 5-minute intervals) for the same activity and therefore duplicates the activity in Google Sheet and Google Calendar.
I assume, unless you tell me otherwise, that the problem is with Strava.
While waiting for Strava to fix the problem, I’d like to create a rule in my workflow to avoid duplications.
I’m imagining putting in some intermediate code for the Google Sheet registration that will check if the output (via its ID) is already in the Google Sheet.
But how do I do this for Google Calendar?
Or is there a solution upstream of wokrflow to avoid these duplications?
thanks for your help
There is likely a better way to do this, but you could insert an ID as a field or part of a field (e.g. description) in the Google calendar event too. The brute force way of finding the events would be to use the ‘get many’ option and then try to match the specified field from the results