The Calendar You've Been Waiting For
When a new event is created, you’d like the current user to be assigned as the event’s resource. Note that resources are arrays (like statuses) so the value assigned to a resource must be in brackets, like [‘some string’] or, as in this example, [seedcodeCalendar.get(‘config’).accountName]
Simply copy and paste this as a new On Event Create event action:
Trigger | On Event Create |
Script |
//Add's the creator as a resource to new events Initialize(editEvent, seedcodeCalendar); function Initialize(editEvent, seedcodeCalendar) { editEvent.resource = [seedcodeCalendar.get('config').accountName]; } |
Options | Open in new window: No Prevent default action: No |
No download. Code listed above.