Thanks guys.
The reason I need to unJoin a user once the event has expired is because events can be relisted by the creator, so we want to ‘clear the slate’ so we can see who will be going to the next meeting.
A history is maintained because I show users their expired events and they can also ‘Follow’ events and remain ‘followers’ even after an event expires. When the creator relists their event, all followers are notified with text saying “an event you follow has been relisted”.
Anyway, after reading your thoughts, I’d like to show you more specifically what is happening when I try and schedule a workflow to ‘unJoin’ users from expired events.
This is the workflow for the ‘Going’ button;
I set up a schedule event;
I try and then add that custom event to the Going button but the drop down field ‘custom event’ doesn’t work, it won’t drop down or offer any options.
By the way, the custom event I set up wouldn’t work anyway because no matter what I do, the text becomes red ‘error’ text. If I choose Type: Event, I am warned that “You’re trying to change a list of Events”. If, however, I choose Type: User, I am warned that “You’re trying to change a list of Users”.
I have also thought about adding the scheduled workflow to the button which created a new Event. In other words, when you create an event, the ‘Post event’ button would have something saying "when event expires, clear all users Going to the event’. But I faced the same issues as above.
I have identified the issue to be that a scheduled event won’t allow me to ‘make changes to a thing’, it always forces me to make changes to a list of things. I have tried both custom and general scheduled workflows, and get the same issue.
See image below, if I select ‘make changes to a thing’, the options are to either change a ‘current user’ or ‘Do a search for’.
If I change a ‘current user’, it warns me “You’re trying to change a list of Users”.
If I ‘Do a search for’, I attempt to choose Event but it warns me “You’re trying to change a list of Events”.
Frustrating because I have an unJoin button which users can press and that works fine. The logic for that is;
Current page event
Going remove current user
So, the scheduled trigger just needs to say;
Current page event
Date > current date
(event date has expired)
Going remove current user.
Why is it so hard to do this?!